mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 22:05:19 +00:00
when in action mode, hide the FAB
This commit is contained in:
@@ -83,6 +83,8 @@ public class PasswordRecyclerAdapter extends EntryRecyclerAdapter {
|
|||||||
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
|
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
|
||||||
// Inflate a menu resource providing context menu items
|
// Inflate a menu resource providing context menu items
|
||||||
mode.getMenuInflater().inflate(R.menu.context_pass, menu);
|
mode.getMenuInflater().inflate(R.menu.context_pass, menu);
|
||||||
|
// hide the fab
|
||||||
|
activity.findViewById(R.id.fab).setVisibility(View.GONE);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,6 +132,8 @@ public class PasswordRecyclerAdapter extends EntryRecyclerAdapter {
|
|||||||
it.remove();
|
it.remove();
|
||||||
}
|
}
|
||||||
mActionMode = null;
|
mActionMode = null;
|
||||||
|
// show the fab
|
||||||
|
activity.findViewById(R.id.fab).setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user