Ignore already cancelled

(cherry picked from commit 816e33d95502688f55eaf52ef6059951fd0769a3)
This commit is contained in:
Stephen Paul Weber 2024-01-31 15:53:45 -05:00 committed by 12aw
parent 37bd30f20f
commit 41a2736375

View file

@ -3470,14 +3470,16 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
View v2 = getView();
loading = true;
loadingTimer.schedule(new TimerTask() {
@Override
public void run() {
loadingHasBeenLong = true;
if (v == null && v2 == null) return;
(v == null ? v2 : v).post(() -> notifyDataSetChanged());
}
}, 3000);
try {
loadingTimer.schedule(new TimerTask() {
@Override
public void run() {
loadingHasBeenLong = true;
if (v == null && v2 == null) return;
(v == null ? v2 : v).post(() -> notifyDataSetChanged());
}
}, 3000);
} catch (final IllegalStateException e) { }
if (v == null && v2 == null) return;
(v == null ? v2 : v).post(() -> notifyDataSetChanged());