fix: emoji reload

This commit is contained in:
xtaodada 2023-01-21 19:51:16 +08:00
parent 7de32ff3c1
commit 4e7962c8d2
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -671,6 +671,9 @@ public class EmojiHelper extends BaseRemoteHelper implements NotificationCenter.
}
private void checkAccount() {
if (Thread.currentThread() != ApplicationLoader.applicationHandler.getLooper().getThread()) {
return;
}
if (currentAccount != UserConfig.selectedAccount) {
NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.fileLoaded);
NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.fileLoadProgressChanged);