fixed crash

This commit is contained in:
gdlbo
2022-07-12 12:42:09 +03:00
parent c5d1e73dc6
commit c83b6e4c76
3 changed files with 17 additions and 8 deletions
@@ -69,6 +69,15 @@ public class Themes{
WebCachePreloader.e();
} // apply changed theme
public static void setThemeFL(VKTheme theme, Activity activity, float[] fl){
if (activity == null) activity = getCurrentActivity();
VKThemeHelper.theme(theme, activity, fl);
ThemeTracker.a();
isLoaded = false;
new WebView(activity).clearCache(true);
WebCachePreloader.e();
}
public static boolean isDarkTheme(){
return VKThemeHelper.r();
}