0.8.x branch promoted to version 0.8.1, fixed list view of mail accounts not filling the main layout, made a bunch of private classes static
This commit is contained in:
@@ -97,7 +97,7 @@ public class Apg {
|
||||
public static final String ENCRYPT = "org.thialfihar.android.apg.intent.ENCRYPT";
|
||||
}
|
||||
|
||||
public static String VERSION = "0.8.0";
|
||||
public static String VERSION = "0.8.1";
|
||||
public static String FULL_VERSION = "APG v" + VERSION;
|
||||
|
||||
private static final int[] PREFERRED_SYMMETRIC_ALGORITHMS =
|
||||
|
||||
@@ -39,7 +39,7 @@ import android.widget.AdapterView.OnItemClickListener;
|
||||
public class MailListActivity extends ListActivity {
|
||||
LayoutInflater minflater = null;
|
||||
|
||||
private class Conversation {
|
||||
private static class Conversation {
|
||||
public long id;
|
||||
public String subject;
|
||||
public Vector<Message> messages;
|
||||
@@ -50,7 +50,7 @@ public class MailListActivity extends ListActivity {
|
||||
}
|
||||
}
|
||||
|
||||
private class Message {
|
||||
private static class Message {
|
||||
public Conversation parent;
|
||||
public long id;
|
||||
public String subject;
|
||||
|
||||
@@ -360,7 +360,7 @@ public class MainActivity extends Activity {
|
||||
startActivity(new Intent(this, MailListActivity.class).putExtra("account", account));
|
||||
}
|
||||
|
||||
private class AccountListAdapter extends CursorAdapter {
|
||||
private static class AccountListAdapter extends CursorAdapter {
|
||||
private LayoutInflater minflater;
|
||||
|
||||
public AccountListAdapter(Context context, Cursor cursor) {
|
||||
|
||||
@@ -481,7 +481,7 @@ public class PublicKeyListActivity extends ExpandableListActivity
|
||||
((PublicKeyListAdapter) getExpandableListAdapter()).notifyDataSetChanged();
|
||||
}
|
||||
|
||||
private class PublicKeyListAdapter extends BaseExpandableListAdapter {
|
||||
private static class PublicKeyListAdapter extends BaseExpandableListAdapter {
|
||||
private LayoutInflater mInflater;
|
||||
|
||||
private class KeyChild {
|
||||
|
||||
@@ -580,7 +580,7 @@ public class SecretKeyListActivity extends ExpandableListActivity
|
||||
.notifyDataSetChanged();
|
||||
}
|
||||
|
||||
private class SecretKeyListAdapter extends BaseExpandableListAdapter {
|
||||
private static class SecretKeyListAdapter extends BaseExpandableListAdapter {
|
||||
private LayoutInflater mInflater;
|
||||
|
||||
private class KeyChild {
|
||||
|
||||
@@ -115,14 +115,7 @@ public class DataProvider extends ContentProvider {
|
||||
|
||||
@Override
|
||||
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
|
||||
int currentVersion = oldVersion;
|
||||
while (currentVersion < newVersion) {
|
||||
switch (currentVersion) {
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
// TODO: upgrade db if necessary, and do that in a clever way
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user