mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-17 21:47:28 +00:00
parent
2790128e9c
commit
69ee4cbc71
@ -160,7 +160,7 @@ public class ConversationListAdapter extends CursorRecyclerViewAdapter<Conversat
|
|||||||
|
|
||||||
public void selectAllThreads() {
|
public void selectAllThreads() {
|
||||||
for (int i = 0; i < getItemCount(); i++) {
|
for (int i = 0; i < getItemCount(); i++) {
|
||||||
batchSet.add(getItemId(i));
|
batchSet.add(getThreadRecord(getCursorAtPositionOrThrow(i)).getThreadId());
|
||||||
}
|
}
|
||||||
this.notifyDataSetChanged();
|
this.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
@ -225,7 +225,7 @@ public class ConversationListFragment extends Fragment
|
|||||||
private void handleSelectAllThreads() {
|
private void handleSelectAllThreads() {
|
||||||
getListAdapter().selectAllThreads();
|
getListAdapter().selectAllThreads();
|
||||||
actionMode.setSubtitle(getString(R.string.conversation_fragment_cab__batch_selection_amount,
|
actionMode.setSubtitle(getString(R.string.conversation_fragment_cab__batch_selection_amount,
|
||||||
((ConversationListAdapter)this.getListAdapter()).getBatchSelections().size()));
|
getListAdapter().getBatchSelections().size()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleCreateConversation(long threadId, Recipients recipients, int distributionType) {
|
private void handleCreateConversation(long threadId, Recipients recipients, int distributionType) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user