nigg
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package ru.vtosters.lite.ui.fragments;
|
||||
|
||||
import static ru.vtosters.lite.ui.wallpapers.WallpapersHooks.removeWallpaper;
|
||||
import static ru.vtosters.lite.utils.AndroidUtils.getGlobalContext;
|
||||
import static ru.vtosters.lite.utils.AndroidUtils.getIdentifier;
|
||||
import static ru.vtosters.lite.utils.AndroidUtils.getPreferences;
|
||||
@@ -106,6 +107,7 @@ public class MessagesFragment extends MaterialPreferenceToolbarFragment {
|
||||
// a2.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
// context.startActivity(a2);
|
||||
sendToast("Обои временно недоступны. Следите за новостями на @vtosters в Telegram");
|
||||
removeWallpaper();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import b.h.g.m.FileUtils;
|
||||
public class CacheUtils {
|
||||
private static CacheUtils sInstance = new CacheUtils();
|
||||
public long size = 0;
|
||||
public static boolean needToDelete = false;
|
||||
|
||||
public static CacheUtils getInstance() {
|
||||
if (sInstance == null)
|
||||
@@ -54,7 +53,7 @@ public class CacheUtils {
|
||||
public void autoCleaningCache() {
|
||||
size = IOUtils.getDirSize(getGlobalContext().getCacheDir());
|
||||
|
||||
if (size >= getSizeForDelete() && needToDelete) {
|
||||
if (size >= getSizeForDelete()) {
|
||||
if (dev()) sendToast(AndroidUtils.getString("cache_cleaned"));
|
||||
VKImageLoader.e();
|
||||
ImAudioMsgPlayerProvider.b().e(PlayerActionSources.a);
|
||||
|
||||
@@ -7,7 +7,6 @@ import static ru.vtosters.lite.utils.AndroidUtils.getGlobalContext;
|
||||
import static ru.vtosters.lite.utils.AndroidUtils.getPreferences;
|
||||
import static ru.vtosters.lite.utils.AndroidUtils.getPrefsValue;
|
||||
import static ru.vtosters.lite.utils.CacheUtils.getInstance;
|
||||
import static ru.vtosters.lite.utils.CacheUtils.needToDelete;
|
||||
import static ru.vtosters.lite.utils.DeletedMessagesHandler.reloadMessagesList;
|
||||
import static ru.vtosters.lite.utils.NewsFeedFiltersUtils.setupFilters;
|
||||
import static ru.vtosters.lite.utils.SignatureChecker.validateAppSignature;
|
||||
@@ -363,22 +362,16 @@ public class Preferences {
|
||||
public static long getSizeForDelete() {
|
||||
switch (getPrefsValue("clearcache")) {
|
||||
case "100mb":
|
||||
needToDelete = true;
|
||||
return 104857600L;
|
||||
case "500mb":
|
||||
needToDelete = true;
|
||||
return 524288000L;
|
||||
case "1gb":
|
||||
needToDelete = true;
|
||||
return 1073741824L;
|
||||
case "2gb":
|
||||
needToDelete = true;
|
||||
return 2147483648L;
|
||||
case "5gb":
|
||||
needToDelete = true;
|
||||
return 5368709120L;
|
||||
default:
|
||||
needToDelete = false;
|
||||
return MAX_VALUE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,8 +39,6 @@
|
||||
.method private b()V
|
||||
.locals 2
|
||||
|
||||
return-void
|
||||
|
||||
.line 1
|
||||
new-instance v0, Lcom/vk/api/account/AccountGetPingUrl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user