diff options
author | zeapo <mohamed@zenadi.com> | 2017-09-10 15:16:02 +0200 |
---|---|---|
committer | zeapo <mohamed@zenadi.com> | 2017-09-10 15:16:02 +0200 |
commit | 8e145191fe63e53be9aab521a66d4ac28695c160 (patch) | |
tree | 7fa3c8ffa3607ed764abbdb68984edecfbd2154d /app/src | |
parent | 032e6fc75604df32ae75e2f4d6b27b4aa3521d03 (diff) |
when in action mode, hide the FAB
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java index a4446198..01ee0a98 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java +++ b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java @@ -83,6 +83,8 @@ public class PasswordRecyclerAdapter extends EntryRecyclerAdapter { public boolean onCreateActionMode(ActionMode mode, Menu menu) { // Inflate a menu resource providing context menu items mode.getMenuInflater().inflate(R.menu.context_pass, menu); + // hide the fab + activity.findViewById(R.id.fab).setVisibility(View.GONE); return true; } @@ -130,6 +132,8 @@ public class PasswordRecyclerAdapter extends EntryRecyclerAdapter { it.remove(); } mActionMode = null; + // show the fab + activity.findViewById(R.id.fab).setVisibility(View.VISIBLE); } }; } |