Skip to content

Commit

Permalink
Remove the annoying 'free storage space' pop-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jul 24, 2024
1 parent cb5f341 commit 48f0065
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5546,6 +5546,7 @@ public boolean isPremiumHintVisible() {
}

private boolean isCacheHintVisible() {
/*
if (cacheSize == null || deviceSize == null) {
return false;
}
Expand All @@ -5555,6 +5556,8 @@ private boolean isCacheHintVisible() {
}
SharedPreferences prefs = MessagesController.getGlobalMainSettings();
return System.currentTimeMillis() > prefs.getLong("cache_hint_showafter", 0L);
*/
return false;
}

private void resetCacheHintVisible() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7067,6 +7067,7 @@ private void onThemeLoadFinish() {
private long lastSpaceAlert;
private static LaunchActivity staticInstanceForAlerts;
private void checkFreeDiscSpace(final int force) {
/*
staticInstanceForAlerts = this;
AutoDeleteMediaTask.run();
SharedConfig.checkLogsToDelete();
Expand Down Expand Up @@ -7117,6 +7118,8 @@ private void checkFreeDiscSpace(final int force) {
}
}, 2000);
*/
return;
}
public static void checkFreeDiscSpaceStatic(final int force) {
if (staticInstanceForAlerts != null) {
Expand Down

0 comments on commit 48f0065

Please sign in to comment.