aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-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);
}
};
}