mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-29 00:14:12 +01:00
Ignore already cancelled
(cherry picked from commit 816e33d95502688f55eaf52ef6059951fd0769a3)
This commit is contained in:
parent
37bd30f20f
commit
41a2736375
1 changed files with 10 additions and 8 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue