mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 22:12:55 +00:00
Check if there's a selected item after pressing on an Action menu item
This commit is contained in:
parent
ac123918c2
commit
d2f0f71be5
1 changed files with 4 additions and 0 deletions
|
@ -828,6 +828,10 @@ public class MainActivity extends AegisActivity implements EntryListView.Listene
|
|||
|
||||
@Override
|
||||
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
|
||||
if(_selectedEntries.size() == 0) {
|
||||
mode.finish();
|
||||
return true;
|
||||
}
|
||||
switch (item.getItemId()) {
|
||||
case R.id.action_copy:
|
||||
copyEntryCode(_selectedEntries.get(0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue