added DEV version to repo
This commit is contained in:
parent
1ef725ef20
commit
23e673bfdf
2135 changed files with 97033 additions and 21206 deletions
|
|
@ -6,7 +6,7 @@
|
|||
* SPDX-FileCopyrightText: 2019 Tobias Kaminsky <tobias@kaminsky.me>
|
||||
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
|
||||
* SPDX-FileCopyrightText: 2016 Andy Scherzinger <info@andy-scherzinger.de>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
|
||||
*/
|
||||
package com.nextcloud.client.preferences;
|
||||
|
||||
|
|
@ -55,6 +55,7 @@ public final class AppPreferencesImpl implements AppPreferences {
|
|||
*/
|
||||
public static final String AUTO_PREF__LAST_SEEN_VERSION_CODE = "lastSeenVersionCode";
|
||||
public static final String STORAGE_PATH = "storage_path";
|
||||
public static final String DATA_STORAGE_LOCATION = "data_storage_location";
|
||||
public static final String STORAGE_PATH_VALID = "storage_path_valid";
|
||||
public static final String PREF__DARK_THEME = "dark_theme_mode";
|
||||
public static final float DEFAULT_GRID_COLUMN = 3f;
|
||||
|
|
@ -102,6 +103,15 @@ public final class AppPreferencesImpl implements AppPreferences {
|
|||
private static final String PREF__STORAGE_PERMISSION_REQUESTED = "storage_permission_requested";
|
||||
private static final String PREF__IN_APP_REVIEW_DATA = "in_app_review_data";
|
||||
|
||||
private static final String PREF__TWO_WAY_STATUS = "two_way_sync_status";
|
||||
private static final String PREF__TWO_WAY_SYNC_INTERVAL = "two_way_sync_interval";
|
||||
|
||||
private static final String PREF__STOP_DOWNLOAD_JOBS_ON_START = "stop_download_jobs_on_start";
|
||||
|
||||
private static final String PREF__PASSCODE_DELAY_IN_SECONDS = "passcode_delay_in_seconds";
|
||||
|
||||
private static final String PREF_LAST_DISPLAYED_ACCOUNT_NAME = "last_displayed_user";
|
||||
|
||||
private static final String LOG_ENTRY = "log_entry";
|
||||
|
||||
private final Context context;
|
||||
|
|
@ -300,11 +310,6 @@ public final class AppPreferencesImpl implements AppPreferences {
|
|||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFingerprintUnlockEnabled() {
|
||||
return preferences.getBoolean(SettingsActivity.PREFERENCE_USE_FINGERPRINT, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFolderLayout(OCFile folder) {
|
||||
return getFolderPreference(context,
|
||||
|
|
@ -329,7 +334,7 @@ public final class AppPreferencesImpl implements AppPreferences {
|
|||
userAccountManager.getUser(),
|
||||
PREF__FOLDER_SORT_ORDER,
|
||||
folder,
|
||||
FileSortOrder.sort_a_to_z.name));
|
||||
FileSortOrder.SORT_A_TO_Z.name));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -343,7 +348,7 @@ public final class AppPreferencesImpl implements AppPreferences {
|
|||
|
||||
@Override
|
||||
public FileSortOrder getSortOrderByType(FileSortOrder.Type type) {
|
||||
return getSortOrderByType(type, FileSortOrder.sort_a_to_z);
|
||||
return getSortOrderByType(type, FileSortOrder.SORT_A_TO_Z);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -789,4 +794,54 @@ public final class AppPreferencesImpl implements AppPreferences {
|
|||
public String getLastSelectedMediaFolder() {
|
||||
return preferences.getString(PREF__MEDIA_FOLDER_LAST_PATH, OCFile.ROOT_PATH);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTwoWaySyncStatus(boolean value) {
|
||||
preferences.edit().putBoolean(PREF__TWO_WAY_STATUS, value).apply();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTwoWaySyncEnabled() {
|
||||
return preferences.getBoolean(PREF__TWO_WAY_STATUS, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTwoWaySyncInterval(Long value) {
|
||||
preferences.edit().putLong(PREF__TWO_WAY_SYNC_INTERVAL, value).apply();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long getTwoWaySyncInterval() {
|
||||
return preferences.getLong(PREF__TWO_WAY_SYNC_INTERVAL, 15L);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldStopDownloadJobsOnStart() {
|
||||
return preferences.getBoolean(PREF__STOP_DOWNLOAD_JOBS_ON_START, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setStopDownloadJobsOnStart(boolean value) {
|
||||
preferences.edit().putBoolean(PREF__STOP_DOWNLOAD_JOBS_ON_START, value).apply();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPassCodeDelay() {
|
||||
return preferences.getInt(PREF__PASSCODE_DELAY_IN_SECONDS, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPassCodeDelay(int value) {
|
||||
preferences.edit().putInt(PREF__PASSCODE_DELAY_IN_SECONDS, value).apply();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLastDisplayedAccountName() {
|
||||
return preferences.getString(PREF_LAST_DISPLAYED_ACCOUNT_NAME, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setLastDisplayedAccountName(String lastDisplayedAccountName) {
|
||||
preferences.edit().putString(PREF_LAST_DISPLAYED_ACCOUNT_NAME, lastDisplayedAccountName).apply();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue