From b527ae8b6d3239dc5ade65dec424d30856bc77e5 Mon Sep 17 00:00:00 2001 From: Thialfihar Date: Thu, 13 May 2010 20:41:32 +0000 Subject: [PATCH] a lot of renaming of IDs, following a strict naming scheme again, moved most strings into string.xml in preparation for internationalization, APG.java still has to be changed to allow that, as it isn't Context aware in most methods --- res/layout/account_item.xml | 2 +- res/layout/decrypt.xml | 22 +-- res/layout/edit_key_key_item.xml | 6 +- res/layout/edit_key_user_id_item.xml | 10 +- res/layout/encrypt.xml | 56 +++---- res/layout/key_list_child_item_master_key.xml | 10 +- res/layout/key_list_child_item_sub_key.xml | 8 +- res/layout/key_list_child_item_user_id.xml | 2 +- res/layout/key_list_group_item.xml | 4 +- res/layout/mailbox_message_item.xml | 2 +- res/layout/main.xml | 2 +- res/layout/pass_phrase.xml | 4 +- res/layout/preferences.xml | 18 +-- res/layout/select_public_key_item.xml | 7 +- res/layout/select_secret_key_item.xml | 6 +- res/values/strings.xml | 145 ++++++++++++++---- src/org/thialfihar/android/apg/Apg.java | 4 +- .../apg/AskForSecretKeyPassPhrase.java | 10 +- .../thialfihar/android/apg/BaseActivity.java | 54 ++++--- .../android/apg/DecryptActivity.java | 69 +++++---- .../android/apg/EditKeyActivity.java | 22 +-- .../android/apg/EncryptActivity.java | 96 ++++++------ .../thialfihar/android/apg/FileDialog.java | 2 +- src/org/thialfihar/android/apg/Id.java | 2 + .../android/apg/MailListActivity.java | 2 +- .../thialfihar/android/apg/MainActivity.java | 72 ++++----- .../android/apg/PreferencesActivity.java | 6 +- .../android/apg/PublicKeyListActivity.java | 76 +++++---- .../android/apg/SecretKeyListActivity.java | 83 +++++----- .../apg/SelectPublicKeyListAdapter.java | 24 +-- .../apg/SelectSecretKeyListActivity.java | 24 +-- .../android/apg/ui/widget/KeyEditor.java | 19 +-- .../android/apg/ui/widget/SectionView.java | 25 ++- .../android/apg/ui/widget/UserIdEditor.java | 7 +- 34 files changed, 493 insertions(+), 408 deletions(-) diff --git a/res/layout/account_item.xml b/res/layout/account_item.xml index c2a75075e..0aa76719a 100644 --- a/res/layout/account_item.xml +++ b/res/layout/account_item.xml @@ -25,7 +25,7 @@ android:layout_height="?android:attr/listPreferredItemHeight"> @@ -69,7 +69,7 @@ android:layout_weight="1"> @@ -84,7 +84,7 @@ @@ -114,8 +114,8 @@ android:orientation="horizontal"> @@ -140,7 +140,7 @@ @@ -170,7 +170,7 @@ android:paddingLeft="5dip"> @@ -69,7 +69,7 @@ android:layout_weight="1"> @@ -84,7 +84,7 @@ @@ -114,8 +114,8 @@ android:orientation="horizontal"> @@ -137,8 +137,8 @@ android:orientation="horizontal"> @@ -170,13 +170,13 @@ android:orientation="horizontal"> @@ -199,7 +199,7 @@ android:layout_height="wrap_content"> @@ -226,7 +226,7 @@ android:paddingRight="5dip"> @@ -285,8 +285,8 @@ @@ -304,8 +304,8 @@ @@ -341,8 +341,8 @@ style="@android:style/ButtonBar">