aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/thialfihar/android/apg
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/thialfihar/android/apg')
-rw-r--r--src/org/thialfihar/android/apg/Apg.java2
-rw-r--r--src/org/thialfihar/android/apg/MailListActivity.java4
-rw-r--r--src/org/thialfihar/android/apg/MainActivity.java2
-rw-r--r--src/org/thialfihar/android/apg/PublicKeyListActivity.java2
-rw-r--r--src/org/thialfihar/android/apg/SecretKeyListActivity.java2
-rw-r--r--src/org/thialfihar/android/apg/provider/DataProvider.java9
6 files changed, 7 insertions, 14 deletions
diff --git a/src/org/thialfihar/android/apg/Apg.java b/src/org/thialfihar/android/apg/Apg.java
index 68c4f8877..bf32fc1eb 100644
--- a/src/org/thialfihar/android/apg/Apg.java
+++ b/src/org/thialfihar/android/apg/Apg.java
@@ -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 =
diff --git a/src/org/thialfihar/android/apg/MailListActivity.java b/src/org/thialfihar/android/apg/MailListActivity.java
index 8e63a7920..570e761df 100644
--- a/src/org/thialfihar/android/apg/MailListActivity.java
+++ b/src/org/thialfihar/android/apg/MailListActivity.java
@@ -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;
diff --git a/src/org/thialfihar/android/apg/MainActivity.java b/src/org/thialfihar/android/apg/MainActivity.java
index e7107f255..af0618031 100644
--- a/src/org/thialfihar/android/apg/MainActivity.java
+++ b/src/org/thialfihar/android/apg/MainActivity.java
@@ -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) {
diff --git a/src/org/thialfihar/android/apg/PublicKeyListActivity.java b/src/org/thialfihar/android/apg/PublicKeyListActivity.java
index cebd9c7ae..d858908c9 100644
--- a/src/org/thialfihar/android/apg/PublicKeyListActivity.java
+++ b/src/org/thialfihar/android/apg/PublicKeyListActivity.java
@@ -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 {
diff --git a/src/org/thialfihar/android/apg/SecretKeyListActivity.java b/src/org/thialfihar/android/apg/SecretKeyListActivity.java
index f42b4ccad..69e8c8c7a 100644
--- a/src/org/thialfihar/android/apg/SecretKeyListActivity.java
+++ b/src/org/thialfihar/android/apg/SecretKeyListActivity.java
@@ -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 {
diff --git a/src/org/thialfihar/android/apg/provider/DataProvider.java b/src/org/thialfihar/android/apg/provider/DataProvider.java
index 0a6a814e4..fbc1be047 100644
--- a/src/org/thialfihar/android/apg/provider/DataProvider.java
+++ b/src/org/thialfihar/android/apg/provider/DataProvider.java
@@ -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
}
}