1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-04 06:20:26 +00:00

Simplification

This commit is contained in:
M66B 2019-10-13 09:54:40 +02:00
parent e7e4a0c356
commit 4a960bc2d2

View file

@ -517,8 +517,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
if (pos == RecyclerView.NO_POSITION) if (pos == RecyclerView.NO_POSITION)
return null; return null;
TupleMessageEx prev = (pos > 0 ? adapter.getCurrentList().get(pos - 1) : null); TupleMessageEx prev = adapter.getItemAtPosition(pos - 1);
TupleMessageEx message = adapter.getCurrentList().get(pos); TupleMessageEx message = adapter.getItemAtPosition(pos);
if (pos > 0 && prev == null) if (pos > 0 && prev == null)
return null; return null;
if (message == null) if (message == null)