aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2015-03-20 15:15:54 +0100
committerDominik Schürmann <dominik@dominikschuermann.de>2015-03-20 15:15:54 +0100
commitacd6c2ecec0ecc447428b87026d7f69b71f7f574 (patch)
treebd94d489773663e66b9cac4ae904ff56a99a8ebe
parent2153aea1976f1609eda547f5fdb55f615f7c18dd (diff)
parent0954b028129efabdb87a388ee493cff2bb0f5b1d (diff)
downloadopen-keychain-acd6c2ecec0ecc447428b87026d7f69b71f7f574.tar.gz
open-keychain-acd6c2ecec0ecc447428b87026d7f69b71f7f574.tar.bz2
open-keychain-acd6c2ecec0ecc447428b87026d7f69b71f7f574.zip
Merge branch 'development' of github.com:open-keychain/open-keychain into development
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java19
1 files changed, 17 insertions, 2 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java
index f8939f3d1..793fb4524 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java
@@ -169,6 +169,22 @@ public class KeyListFragment extends LoaderFragment
mStickyList.setDrawingListUnderStickyHeader(false);
mStickyList.setFastScrollEnabled(true);
+ // Adds an empty footer view so that the Floating Action Button won't block content
+ // in last few rows.
+ View footer = new View(getActivity());
+
+ int spacing = (int) android.util.TypedValue.applyDimension(
+ android.util.TypedValue.COMPLEX_UNIT_DIP, 72, getResources().getDisplayMetrics()
+ );
+
+ android.widget.AbsListView.LayoutParams params = new android.widget.AbsListView.LayoutParams(
+ android.widget.AbsListView.LayoutParams.MATCH_PARENT,
+ spacing
+ );
+
+ footer.setLayoutParams(params);
+ mStickyList.addFooterView(footer, null, false);
+
/*
* Multi-selection
*/
@@ -369,7 +385,7 @@ public class KeyListFragment extends LoaderFragment
/**
* Show dialog to delete key
*
- * @param hasSecret must contain whether the list of masterKeyIds contains a secret key or not
+ * @param hasSecret must contain whether the list of masterKeyIds contains a secret key or not
*/
public void showDeleteKeyDialog(final ActionMode mode, long[] masterKeyIds, boolean hasSecret) {
// Can only work on singular secret keys
@@ -909,5 +925,4 @@ public class KeyListFragment extends LoaderFragment
}
-
}