fixed auto detect theme + fixes of debug

This commit is contained in:
gdlbo
2022-06-22 23:09:05 +03:00
parent 94a5ddcc5f
commit 1c6fd7050d
4 changed files with 20 additions and 21 deletions
@@ -70,6 +70,7 @@ public class Globals {
Start.alert(activity);
InstallGMS.alert(activity);
DisableBattery.alert(activity);
edit().putBoolean("isdark", isDarkTheme()).commit();
// VKIDProtection.alert(activity);
}
@@ -5,7 +5,7 @@ import static java.lang.Long.MAX_VALUE;
import static ru.vtosters.lite.f0x1d.VTVerifications.hasPrometheus;
import static ru.vtosters.lite.f0x1d.VTVerifications.isVerified;
import static ru.vtosters.lite.utils.CacheUtils.getInstance;
//import static ru.vtosters.lite.utils.DeletedMessagesHandler.reloadMessagesList;
import static ru.vtosters.lite.utils.Globals.edit;
import static ru.vtosters.lite.utils.Globals.fixGapps;
import static ru.vtosters.lite.utils.Globals.getContext;
import static ru.vtosters.lite.utils.Globals.getIdentifier;
@@ -18,6 +18,7 @@ import static ru.vtosters.lite.utils.Newsfeed.setupFilters;
import static ru.vtosters.lite.utils.OpusLoader.LoadLibrary;
import static ru.vtosters.lite.utils.Proxy.setProxy;
import static ru.vtosters.lite.utils.SignatureChecker.validateAppSignature;
import static ru.vtosters.lite.utils.Themes.isDarkTheme;
import static ru.vtosters.lite.utils.Themes.systemThemeChanger;
import android.annotation.SuppressLint;
@@ -65,6 +66,8 @@ public class Preferences {
setupFilters();
getInstance().autoCleaningCache();
edit().putBoolean("isdark", isDarkTheme()).commit();
if (setoffline() && !offline()) {
Users.a();
}