kopia lustrzana https://github.com/ryukoposting/Signal-Android
End conversation selection action mode if all deselected
This seems to be common convention in most apps.fork-5.53.8
rodzic
28f1a0a636
commit
a020a57be6
|
@ -107,6 +107,11 @@ public class ConversationListFragment extends SherlockListFragment
|
|||
} else {
|
||||
ConversationListAdapter adapter = (ConversationListAdapter)getListAdapter();
|
||||
adapter.toggleThreadInBatchSet(headerView.getThreadId());
|
||||
|
||||
if (adapter.getBatchSelections().size() == 0) {
|
||||
actionMode.finish();
|
||||
}
|
||||
|
||||
adapter.notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue