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:
Thialfihar
2010-04-14 14:08:24 +00:00
parent 8cdee9ec30
commit b8009d6d43
8 changed files with 11 additions and 17 deletions

View File

@@ -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 =

View File

@@ -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;

View File

@@ -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) {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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
}
}