mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-12 16:37:41 +00:00
End conversation selection action mode if all deselected
This seems to be common convention in most apps.
This commit is contained in:
@@ -107,6 +107,11 @@ public class ConversationListFragment extends SherlockListFragment
|
|||||||
} else {
|
} else {
|
||||||
ConversationListAdapter adapter = (ConversationListAdapter)getListAdapter();
|
ConversationListAdapter adapter = (ConversationListAdapter)getListAdapter();
|
||||||
adapter.toggleThreadInBatchSet(headerView.getThreadId());
|
adapter.toggleThreadInBatchSet(headerView.getThreadId());
|
||||||
|
|
||||||
|
if (adapter.getBatchSelections().size() == 0) {
|
||||||
|
actionMode.finish();
|
||||||
|
}
|
||||||
|
|
||||||
adapter.notifyDataSetChanged();
|
adapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user