From 4e661886b1e42c9bdd61d4aaa2e6403129f0aa1f Mon Sep 17 00:00:00 2001 From: Andrea Torlaschi Date: Sun, 21 Aug 2016 16:32:20 +0200 Subject: [PATCH] ImportKeys: Changed UI a bit --- .../res/layout/import_keys_list_fragment.xml | 18 ++++++++++++------ .../res/menu/import_keys_file_fragment.xml | 10 ++++------ OpenKeychain/src/main/res/values/strings.xml | 4 ++-- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/OpenKeychain/src/main/res/layout/import_keys_list_fragment.xml b/OpenKeychain/src/main/res/layout/import_keys_list_fragment.xml index 6ca5c7374..a5bfdc998 100644 --- a/OpenKeychain/src/main/res/layout/import_keys_list_fragment.xml +++ b/OpenKeychain/src/main/res/layout/import_keys_list_fragment.xml @@ -1,10 +1,9 @@ - + - + @@ -19,14 +18,21 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" - android:visibility="@{status == i.STATUS_LOADING ? V.VISIBLE : V.GONE}" /> + android:visibility="@{status == I.STATUS_LOADING ? V.VISIBLE : V.GONE}" /> + + + android:visibility="@{status == I.STATUS_EMPTY ? V.VISIBLE : V.GONE}" /> + android:visibility="@{status == I.STATUS_LOADED ? V.VISIBLE : V.GONE}"> - - + + \ No newline at end of file diff --git a/OpenKeychain/src/main/res/values/strings.xml b/OpenKeychain/src/main/res/values/strings.xml index 6324c78ba..f7fa4a123 100644 --- a/OpenKeychain/src/main/res/values/strings.xml +++ b/OpenKeychain/src/main/res/values/strings.xml @@ -123,7 +123,7 @@ "Manage my keys" "Search" "Open" - "Paste" + "Read from clipboard" "NFC settings" "Beam settings" "Encrypt to…" @@ -390,8 +390,8 @@ "You need Android 4.1 to use Android's NFC Beam feature!" "NFC must be enabled!" "Beam must be enabled!" + "Nothing to show yet." "No keys found!" - "No keys selected for import!" "Retrieving the key ID from contacts failed!" "A generic error occurred, please create a new bug report for OpenKeychain." "Can not read files from storage because access has been denied!"