mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 14:25:28 +00:00
dismiss action mode after we've finished moving passwords
This commit is contained in:
@@ -217,4 +217,10 @@ public class PasswordFragment extends Fragment{
|
|||||||
public boolean isNotEmpty() {
|
public boolean isNotEmpty() {
|
||||||
return !passListStack.isEmpty();
|
return !passListStack.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void dismissActionMode() {
|
||||||
|
if (recyclerAdapter != null && recyclerAdapter.mActionMode != null) {
|
||||||
|
recyclerAdapter.mActionMode.finish();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -655,6 +655,9 @@ public class PasswordStore extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
updateListAdapter();
|
updateListAdapter();
|
||||||
|
if (plist != null) {
|
||||||
|
plist.dismissActionMode();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,7 +17,7 @@ import java.util.TreeSet;
|
|||||||
public class PasswordRecyclerAdapter extends EntryRecyclerAdapter {
|
public class PasswordRecyclerAdapter extends EntryRecyclerAdapter {
|
||||||
private final PasswordStore activity;
|
private final PasswordStore activity;
|
||||||
private final PasswordFragment.OnFragmentInteractionListener listener;
|
private final PasswordFragment.OnFragmentInteractionListener listener;
|
||||||
private ActionMode mActionMode;
|
public ActionMode mActionMode;
|
||||||
private Boolean canEdit;
|
private Boolean canEdit;
|
||||||
|
|
||||||
// Provide a suitable constructor (depends on the kind of dataset)
|
// Provide a suitable constructor (depends on the kind of dataset)
|
||||||
|
Reference in New Issue
Block a user