Add "1 day to Keep Media"
This commit is contained in:
@@ -690,6 +690,8 @@ public class SharedConfig {
|
||||
days = 7;
|
||||
} else if (keepMedia == 1) {
|
||||
days = 30;
|
||||
} else if (keepMedia == 4) {
|
||||
days = 1;
|
||||
} else {
|
||||
days = 3;
|
||||
}
|
||||
|
||||
@@ -638,23 +638,27 @@ public class CacheControlActivity extends BaseFragment implements NotificationCe
|
||||
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
|
||||
slideChooseView.setCallback(index -> {
|
||||
if (index == 0) {
|
||||
SharedConfig.setKeepMedia(3);
|
||||
SharedConfig.setKeepMedia(4);
|
||||
} else if (index == 1) {
|
||||
SharedConfig.setKeepMedia(0);
|
||||
SharedConfig.setKeepMedia(3);
|
||||
} else if (index == 2) {
|
||||
SharedConfig.setKeepMedia(1);
|
||||
SharedConfig.setKeepMedia(0);
|
||||
} else if (index == 3) {
|
||||
SharedConfig.setKeepMedia(1);
|
||||
} else if (index == 4) {
|
||||
SharedConfig.setKeepMedia(2);
|
||||
}
|
||||
});
|
||||
int keepMedia = SharedConfig.keepMedia;
|
||||
int index;
|
||||
if (keepMedia == 3) {
|
||||
index = 1;
|
||||
} else if (keepMedia == 4) {
|
||||
index = 0;
|
||||
} else {
|
||||
index = keepMedia + 1;
|
||||
}
|
||||
slideChooseView.setOptions(index, LocaleController.formatPluralString("Days", 3), LocaleController.formatPluralString("Weeks", 1), LocaleController.formatPluralString("Months", 1), LocaleController.getString("KeepMediaForever", R.string.KeepMediaForever));
|
||||
slideChooseView.setOptions(index, LocaleController.formatPluralString("Days", 1), LocaleController.formatPluralString("Days", 3), LocaleController.formatPluralString("Weeks", 1), LocaleController.formatPluralString("Months", 1), LocaleController.getString("KeepMediaForever", R.string.KeepMediaForever));
|
||||
break;
|
||||
case 1:
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user