aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorzeapo <mohamed@zenadi.com>2017-09-10 15:16:02 +0200
committerzeapo <mohamed@zenadi.com>2017-09-10 15:16:02 +0200
commit8e145191fe63e53be9aab521a66d4ac28695c160 (patch)
tree7fa3c8ffa3607ed764abbdb68984edecfbd2154d /app/src
parent032e6fc75604df32ae75e2f4d6b27b4aa3521d03 (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.java4
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);
}
};
}