mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +03:00
disable expert mode on auto upload light, also no custom folders
This commit is contained in:
parent
f63efd0c3d
commit
185887bb42
1 changed files with 14 additions and 12 deletions
|
@ -338,18 +338,20 @@ public class Preferences extends PreferenceActivity
|
||||||
preferenceCategoryDetails.removePreference(mShowHiddenFiles);
|
preferenceCategoryDetails.removePreference(mShowHiddenFiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
mExpertMode = (SwitchPreference) findPreference("expert_mode");
|
if (!getResources().getBoolean(R.bool.syncedFolder_light)) {
|
||||||
mExpertMode.setOnPreferenceClickListener(new OnPreferenceClickListener() {
|
mExpertMode = (SwitchPreference) findPreference("expert_mode");
|
||||||
@Override
|
mExpertMode.setOnPreferenceClickListener(new OnPreferenceClickListener() {
|
||||||
public boolean onPreferenceClick(Preference preference) {
|
@Override
|
||||||
SharedPreferences appPrefs =
|
public boolean onPreferenceClick(Preference preference) {
|
||||||
PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
SharedPreferences appPrefs =
|
||||||
SharedPreferences.Editor editor = appPrefs.edit();
|
PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
||||||
editor.putBoolean("expert_mode", mExpertMode.isChecked());
|
SharedPreferences.Editor editor = appPrefs.edit();
|
||||||
editor.apply();
|
editor.putBoolean("expert_mode", mExpertMode.isChecked());
|
||||||
return true;
|
editor.apply();
|
||||||
}
|
return true;
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
PreferenceCategory preferenceCategoryMore = (PreferenceCategory) findPreference("more");
|
PreferenceCategory preferenceCategoryMore = (PreferenceCategory) findPreference("more");
|
||||||
preferenceCategoryMore.setTitle(ThemeUtils.getColoredTitle(getString(R.string.prefs_category_more),
|
preferenceCategoryMore.setTitle(ThemeUtils.getColoredTitle(getString(R.string.prefs_category_more),
|
||||||
|
|
Loading…
Reference in a new issue