mirror of https://github.com/M66B/FairEmail.git
Simplification
This commit is contained in:
parent
e7e4a0c356
commit
4a960bc2d2
|
@ -517,8 +517,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
if (pos == RecyclerView.NO_POSITION)
|
||||
return null;
|
||||
|
||||
TupleMessageEx prev = (pos > 0 ? adapter.getCurrentList().get(pos - 1) : null);
|
||||
TupleMessageEx message = adapter.getCurrentList().get(pos);
|
||||
TupleMessageEx prev = adapter.getItemAtPosition(pos - 1);
|
||||
TupleMessageEx message = adapter.getItemAtPosition(pos);
|
||||
if (pos > 0 && prev == null)
|
||||
return null;
|
||||
if (message == null)
|
||||
|
|
Loading…
Reference in New Issue