From 175ab1ca3e19b323aabca898cc9f645368ddb397 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 29 Jun 2020 17:09:58 +0200 Subject: [PATCH] Small fix --- app/src/main/java/eu/faircode/email/ViewModelMessages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ViewModelMessages.java b/app/src/main/java/eu/faircode/email/ViewModelMessages.java index b14537a9de..bc4e747cb6 100644 --- a/app/src/main/java/eu/faircode/email/ViewModelMessages.java +++ b/app/src/main/java/eu/faircode/email/ViewModelMessages.java @@ -315,7 +315,7 @@ public class ViewModelMessages extends ViewModel { TupleMessageEx prev = (lprev != null && lprev.size() > 0 ? lprev.get(0) : null); TupleMessageEx next = (lnext != null && lnext.size() > 0 ? lnext.get(0) : null); - Pair result = new Pair<>( + Pair result = new Pair<>( prev == null ? null : prev.id, next == null ? null : next.id); Log.i("Observe previous/next fallback=" + result);