when in action mode, hide the FAB
This commit is contained in:
parent
032e6fc756
commit
8e145191fe
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue