Update MainActivityInjector.java
This commit is contained in:
@@ -25,17 +25,10 @@ import static ru.vtosters.lite.utils.ThemesUtils.setNeededTheme;
|
|||||||
public class MainActivityInjector {
|
public class MainActivityInjector {
|
||||||
public static void inject(Activity activity) {
|
public static void inject(Activity activity) {
|
||||||
setNeededTheme(activity);
|
setNeededTheme(activity);
|
||||||
if(activity.getIntent().getAction() != null && Intent.ACTION_APPLICATION_PREFERENCES.equals(activity.getIntent().getAction())) {
|
|
||||||
NavigatorUtils.switchToSettings(activity);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
sendRequest();
|
sendRequest();
|
||||||
UsersList.getUsersList();
|
UsersList.getUsersList();
|
||||||
|
|
||||||
if (checkupdates()) OTADialog.checkUpdates(activity);
|
if (checkupdates()) OTADialog.checkUpdates(activity);
|
||||||
VTExecutors.getIoScheduler().a(DeletedMessagesHandler::reloadMessagesList); // ioScheduler
|
|
||||||
Start.alert(activity);
|
|
||||||
InstallGMS.alert(activity);
|
|
||||||
DisableBattery.alert(activity);
|
|
||||||
|
|
||||||
VTExecutors.getSlowTasksScheduler().a(() -> {
|
VTExecutors.getSlowTasksScheduler().a(() -> {
|
||||||
getInstance().autoCleaningCache();
|
getInstance().autoCleaningCache();
|
||||||
@@ -47,12 +40,22 @@ public class MainActivityInjector {
|
|||||||
NotificationChannels.createChannels();
|
NotificationChannels.createChannels();
|
||||||
}
|
}
|
||||||
|
|
||||||
// VKIDProtection.alert(activity);
|
|
||||||
|
|
||||||
if(Preferences.isNewBuild() && !ThemesUtils.isMonetTheme() && ThemesManager.canApplyCustomAccent()) {
|
if(Preferences.isNewBuild() && !ThemesUtils.isMonetTheme() && ThemesManager.canApplyCustomAccent()) {
|
||||||
Preferences.updateBuildNumber();
|
Preferences.updateBuildNumber();
|
||||||
updateBinsAndTmpArchive(activity);
|
updateBinsAndTmpArchive(activity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VTExecutors.getIoScheduler().a(DeletedMessagesHandler::reloadMessagesList); // ioScheduler
|
||||||
|
|
||||||
|
if(activity.getIntent().getAction() != null && Intent.ACTION_APPLICATION_PREFERENCES.equals(activity.getIntent().getAction())) {
|
||||||
|
NavigatorUtils.switchToSettings(activity);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Start.alert(activity);
|
||||||
|
InstallGMS.alert(activity);
|
||||||
|
DisableBattery.alert(activity);
|
||||||
|
// VKIDProtection.alert(activity);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void updateBinsAndTmpArchive(Activity activity) {
|
private static void updateBinsAndTmpArchive(Activity activity) {
|
||||||
|
|||||||
Reference in New Issue
Block a user