From 8e145191fe63e53be9aab521a66d4ac28695c160 Mon Sep 17 00:00:00 2001 From: zeapo Date: Sun, 10 Sep 2017 15:16:02 +0200 Subject: when in action mode, hide the FAB --- .../main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java | 4 ++++ 1 file changed, 4 insertions(+) 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); } }; } -- cgit v1.2.3