mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-26 01:37:21 +00:00
consider search query when selecting all threads
Fixes #2996 Closes #3112 // FREEBIE
This commit is contained in:
parent
72f3f79016
commit
cdd7a1042a
@ -131,17 +131,9 @@ public class ConversationListAdapter extends CursorRecyclerViewAdapter<Conversat
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void selectAllThreads() {
|
public void selectAllThreads() {
|
||||||
Cursor cursor = DatabaseFactory.getThreadDatabase(context).getConversationList();
|
for (int i = 0; i < getItemCount(); i++) {
|
||||||
|
batchSet.add(getItemId(i));
|
||||||
try {
|
|
||||||
while (cursor != null && cursor.moveToNext()) {
|
|
||||||
this.batchSet.add(cursor.getLong(cursor.getColumnIndexOrThrow(ThreadDatabase.ID)));
|
|
||||||
}
|
|
||||||
} finally {
|
|
||||||
if (cursor != null)
|
|
||||||
cursor.close();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.notifyDataSetChanged();
|
this.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user