mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-06-01 23:00:05 +00:00
fix observer crash
This commit is contained in:
parent
b1cf110def
commit
bfeb053422
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ public class VerificationUpdatesChecker implements NotificationCenter.Notificati
|
|||
}
|
||||
|
||||
public void checkUpdate() {
|
||||
Utilities.globalQueue.postRunnable(() -> {
|
||||
AndroidUtilities.runOnUIThread(() -> {
|
||||
boolean observersAdded = false;
|
||||
for (VerificationStorage storage : VerificationRepository.getInstance().getStorages()) {
|
||||
if (!force && Math.abs(System.currentTimeMillis() - storage.lastCheckTime) < checkDelay * 1000) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue