mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-25 05:27:42 +00:00
Revert "Fix NPE when operating on multiple conversations in batch mode."
This reverts commit fc51c4940c.
This commit is contained in:
@@ -20,7 +20,6 @@ import org.thoughtcrime.securesms.mms.GlideRequests;
|
||||
import org.thoughtcrime.securesms.util.CachedInflater;
|
||||
import org.thoughtcrime.securesms.util.ViewUtil;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
@@ -211,7 +210,7 @@ class ConversationListAdapter extends ListAdapter<Conversation, RecyclerView.Vie
|
||||
}
|
||||
|
||||
Collection<Conversation> getBatchSelection() {
|
||||
return new ArrayList<>(batchSet.values());
|
||||
return batchSet.values();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -234,7 +233,7 @@ class ConversationListAdapter extends ListAdapter<Conversation, RecyclerView.Vie
|
||||
}
|
||||
|
||||
@NonNull Set<Long> getBatchSelectionIds() {
|
||||
return new HashSet<>(batchSet.keySet());
|
||||
return batchSet.keySet();
|
||||
}
|
||||
|
||||
void selectAllThreads() {
|
||||
|
||||
Reference in New Issue
Block a user