From 3c4cb1c2d31ff472dc09d4f71f3f5e9af7547cdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Thu, 19 Sep 2013 02:02:51 +0200 Subject: [PATCH] Work on new Import activity --- OpenPGP-Keychain/res/layout/file_dialog.xml | 9 +- OpenPGP-Keychain/res/layout/import_keys.xml | 56 ++-- .../res/layout/import_keys_file_fragment.xml | 27 ++ .../layout/import_keys_keyserver_fragment.xml | 8 + .../res/layout/import_keys_nfc_fragment.xml | 13 + .../layout/import_keys_qr_code_fragment.xml | 13 + OpenPGP-Keychain/res/values/arrays.xml | 7 + OpenPGP-Keychain/res/values/strings.xml | 8 +- .../keychain/helper/FileHelper.java | 33 +- .../keychain/ui/ImportFileFragment.java | 122 ++++++++ .../keychain/ui/ImportKeyServerFragment.java | 51 +++ .../keychain/ui/ImportKeysActivity.java | 296 ++++++++---------- .../keychain/ui/ImportKeysListFragment.java | 45 ++- .../keychain/ui/ImportNFCFragment.java | 69 ++++ .../keychain/ui/ImportQrCodeFragment.java | 116 +++++++ .../keychain/ui/KeyListActivity.java | 2 +- .../keychain/ui/KeyListPublicActivity.java | 2 +- .../keychain/ui/SelectPublicKeyFragment.java | 3 +- .../ui/dialog/FileDialogFragment.java | 5 +- .../ui/widget/ImportKeysListLoader.java | 4 +- 20 files changed, 655 insertions(+), 234 deletions(-) create mode 100644 OpenPGP-Keychain/res/layout/import_keys_file_fragment.xml create mode 100644 OpenPGP-Keychain/res/layout/import_keys_keyserver_fragment.xml create mode 100644 OpenPGP-Keychain/res/layout/import_keys_nfc_fragment.xml create mode 100644 OpenPGP-Keychain/res/layout/import_keys_qr_code_fragment.xml create mode 100644 OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/ImportFileFragment.java create mode 100644 OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/ImportKeyServerFragment.java create mode 100644 OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/ImportNFCFragment.java create mode 100644 OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/ImportQrCodeFragment.java diff --git a/OpenPGP-Keychain/res/layout/file_dialog.xml b/OpenPGP-Keychain/res/layout/file_dialog.xml index c95f874a5..e33216042 100644 --- a/OpenPGP-Keychain/res/layout/file_dialog.xml +++ b/OpenPGP-Keychain/res/layout/file_dialog.xml @@ -31,13 +31,20 @@ android:id="@+id/input" android:layout_width="0dip" android:layout_height="wrap_content" - android:layout_weight="1" /> + android:layout_weight="1" + android:gravity="top|left" + android:inputType="textMultiLine|textUri" + android:lines="2" + android:maxLines="6" + android:minLines="2" + android:scrollbars="vertical" /> diff --git a/OpenPGP-Keychain/res/layout/import_keys.xml b/OpenPGP-Keychain/res/layout/import_keys.xml index 1c2dbd0c7..ae391e2fd 100644 --- a/OpenPGP-Keychain/res/layout/import_keys.xml +++ b/OpenPGP-Keychain/res/layout/import_keys.xml @@ -4,8 +4,17 @@ android:layout_height="wrap_content" android:layout_centerHorizontal="true" > + +