|
|
|
@ -43,8 +43,8 @@ public class SelectionPredicateMessage extends SelectionTracker.SelectionPredica
|
|
|
|
|
|
|
|
|
|
AdapterMessage adapter = (AdapterMessage) recyclerView.getAdapter();
|
|
|
|
|
TupleMessageEx message = adapter.getItemForKey(key);
|
|
|
|
|
if (message == null)
|
|
|
|
|
return false;
|
|
|
|
|
if (message == null) // happens when restoring state
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
if (message.uid != null)
|
|
|
|
|
return true;
|
|
|
|
@ -59,8 +59,8 @@ public class SelectionPredicateMessage extends SelectionTracker.SelectionPredica
|
|
|
|
|
|
|
|
|
|
AdapterMessage adapter = (AdapterMessage) recyclerView.getAdapter();
|
|
|
|
|
TupleMessageEx message = adapter.getItemAtPosition(position);
|
|
|
|
|
if (message == null)
|
|
|
|
|
return false;
|
|
|
|
|
if (message == null) // happens when restoring state
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
if (message.uid != null)
|
|
|
|
|
return true;
|
|
|
|
|