mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-04 11:13:36 +00:00
Fix emoji theme always loading
This commit is contained in:
parent
1d46cd930f
commit
eacd2894ca
|
@ -2616,6 +2616,7 @@ public class Theme {
|
|||
|
||||
public static ArrayList<ThemeInfo> themes;
|
||||
public static final ArrayList<ChatThemeBottomSheet.ChatThemeItem> defaultEmojiThemes = new ArrayList<>();
|
||||
private static boolean tryToFixMissingEmojiThemes = false;
|
||||
private static ArrayList<ThemeInfo> otherThemes;
|
||||
private static HashMap<String, ThemeInfo> themesDict;
|
||||
private static ThemeInfo currentTheme;
|
||||
|
@ -7365,6 +7366,13 @@ public class Theme {
|
|||
PatternsLoader.createLoader(true);
|
||||
}
|
||||
generateEmojiPreviewThemes(emojiPreviewThemes, currentAccount);
|
||||
} else if (response instanceof TLRPC.TL_account_themesNotModified) {
|
||||
if (defaultEmojiThemes.isEmpty() && !tryToFixMissingEmojiThemes) {
|
||||
// Fix Missing Emoji Themes in v8.3.0-preview01?
|
||||
remoteThemesHash.put(currentAccount, 0);
|
||||
tryToFixMissingEmojiThemes = true;
|
||||
loadRemoteThemes(currentAccount, true);
|
||||
}
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ import androidx.recyclerview.widget.RecyclerView;
|
|||
|
||||
import android.text.TextPaint;
|
||||
import android.text.TextUtils;
|
||||
import android.util.SparseArray;
|
||||
import android.view.Gravity;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
|
|
Loading…
Reference in New Issue
Block a user