From 3d8d22c9ed67a6c7107764803f2baa31ed695edc Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Wed, 12 Mar 2014 02:47:19 +0100 Subject: [PATCH] add empty view to viewkeycertsfragment --- .../keychain/ui/ViewKeyCertsFragment.java | 2 ++ .../src/main/res/layout/view_key_certs_fragment.xml | 10 ++++++++++ OpenPGP-Keychain/src/main/res/values/strings.xml | 1 + 3 files changed, 13 insertions(+) diff --git a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyCertsFragment.java b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyCertsFragment.java index 4551bd4e0..e12c93d2f 100644 --- a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyCertsFragment.java +++ b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyCertsFragment.java @@ -124,6 +124,8 @@ public class ViewKeyCertsFragment extends Fragment } catch (ApiLevelTooLowException e) { } + mStickyList.setEmptyView(getActivity().findViewById(R.id.empty)); + // TODO this view is made visible if no data is available // mStickyList.setEmptyView(getActivity().findViewById(R.id.empty)); diff --git a/OpenPGP-Keychain/src/main/res/layout/view_key_certs_fragment.xml b/OpenPGP-Keychain/src/main/res/layout/view_key_certs_fragment.xml index 40db5e766..60f071bd4 100644 --- a/OpenPGP-Keychain/src/main/res/layout/view_key_certs_fragment.xml +++ b/OpenPGP-Keychain/src/main/res/layout/view_key_certs_fragment.xml @@ -33,6 +33,16 @@ android:layout_alignParentRight="true" android:layout_marginRight="16dp" /> + + \ No newline at end of file diff --git a/OpenPGP-Keychain/src/main/res/values/strings.xml b/OpenPGP-Keychain/src/main/res/values/strings.xml index ab81bee7a..723661928 100644 --- a/OpenPGP-Keychain/src/main/res/values/strings.xml +++ b/OpenPGP-Keychain/src/main/res/values/strings.xml @@ -452,5 +452,6 @@ User ID Subkey Rank ]]> + No certificates for this key