dismiss action mode after we've finished moving passwords

This commit is contained in:
zeapo 2017-09-10 16:25:54 +02:00
parent bc173404c9
commit 1c43d6c7e4
3 changed files with 10 additions and 1 deletions

View file

@ -217,4 +217,10 @@ public class PasswordFragment extends Fragment{
public boolean isNotEmpty() {
return !passListStack.isEmpty();
}
public void dismissActionMode() {
if (recyclerAdapter != null && recyclerAdapter.mActionMode != null) {
recyclerAdapter.mActionMode.finish();
}
}
}

View file

@ -655,6 +655,9 @@ public class PasswordStore extends AppCompatActivity {
}
}
updateListAdapter();
if (plist != null) {
plist.dismissActionMode();
}
break;
}
}

View file

@ -17,7 +17,7 @@ import java.util.TreeSet;
public class PasswordRecyclerAdapter extends EntryRecyclerAdapter {
private final PasswordStore activity;
private final PasswordFragment.OnFragmentInteractionListener listener;
private ActionMode mActionMode;
public ActionMode mActionMode;
private Boolean canEdit;
// Provide a suitable constructor (depends on the kind of dataset)