main branch updated
This commit is contained in:
parent
3d33d3fe49
commit
9a05dc1657
353 changed files with 16802 additions and 2995 deletions
|
|
@ -70,6 +70,8 @@ public final class AppPreferencesImpl implements AppPreferences {
|
|||
private static final String PREF__INSTANT_UPLOADING = "instant_uploading";
|
||||
private static final String PREF__INSTANT_VIDEO_UPLOADING = "instant_video_uploading";
|
||||
private static final String PREF__SHOW_HIDDEN_FILES = "show_hidden_files_pref";
|
||||
private static final String PREF__SORT_FOLDERS_BEFORE_FILES = "sort_folders_before_files";
|
||||
private static final String PREF__SORT_FAVORITES_FIRST = "sort_favorites_first";
|
||||
private static final String PREF__SHOW_ECOSYSTEM_APPS = "show_ecosystem_apps";
|
||||
private static final String PREF__LEGACY_CLEAN = "legacyClean";
|
||||
private static final String PREF__KEYS_MIGRATION = "keysMigration";
|
||||
|
|
@ -88,7 +90,6 @@ public final class AppPreferencesImpl implements AppPreferences {
|
|||
private static final String PREF__SELECTED_ACCOUNT_NAME = "select_oc_account";
|
||||
private static final String PREF__MIGRATED_USER_ID = "migrated_user_id";
|
||||
private static final String PREF__PHOTO_SEARCH_TIMESTAMP = "photo_search_timestamp";
|
||||
private static final String PREF__POWER_CHECK_DISABLED = "power_check_disabled";
|
||||
private static final String PREF__PIN_BRUTE_FORCE_COUNT = "pin_brute_force_count";
|
||||
private static final String PREF__UID_PID = "uid_pid";
|
||||
|
||||
|
|
@ -229,6 +230,26 @@ public final class AppPreferencesImpl implements AppPreferences {
|
|||
preferences.edit().putBoolean(PREF__SHOW_HIDDEN_FILES, enabled).apply();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSortFoldersBeforeFiles() {
|
||||
return preferences.getBoolean(PREF__SORT_FOLDERS_BEFORE_FILES, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSortFoldersBeforeFiles(boolean enabled) {
|
||||
preferences.edit().putBoolean(PREF__SORT_FOLDERS_BEFORE_FILES, enabled).apply();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSortFavoritesFirst() {
|
||||
return preferences.getBoolean(PREF__SORT_FAVORITES_FIRST, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSortFavoritesFirst(boolean enabled) {
|
||||
preferences.edit().putBoolean(PREF__SORT_FAVORITES_FIRST, enabled).apply();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isShowEcosystemApps() {
|
||||
return preferences.getBoolean(PREF__SHOW_ECOSYSTEM_APPS, true);
|
||||
|
|
@ -689,16 +710,6 @@ public final class AppPreferencesImpl implements AppPreferences {
|
|||
return preferenceName + "_" + folderIdString;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPowerCheckDisabled() {
|
||||
return preferences.getBoolean(PREF__POWER_CHECK_DISABLED, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPowerCheckDisabled(boolean value) {
|
||||
preferences.edit().putBoolean(PREF__POWER_CHECK_DISABLED, value).apply();
|
||||
}
|
||||
|
||||
public void increasePinWrongAttempts() {
|
||||
int count = preferences.getInt(PREF__PIN_BRUTE_FORCE_COUNT, 0);
|
||||
preferences.edit().putInt(PREF__PIN_BRUTE_FORCE_COUNT, count + 1).apply();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue