Improve SAF switch descriptions in settings
This commit is contained in:
parent
6a0c5a874c
commit
bcb1cf6603
3 changed files with 14 additions and 10 deletions
|
|
@ -64,15 +64,17 @@ public class DownloadSettingsFragment extends BasePreferenceFragment {
|
|||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q
|
||||
|| Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
|
||||
prefUseSaf.setEnabled(false);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||
prefUseSaf.setSummary(R.string.downloads_storage_use_saf_summary_api_29);
|
||||
} else {
|
||||
prefUseSaf.setSummary(R.string.downloads_storage_use_saf_summary_api_19);
|
||||
}
|
||||
prefStorageAsk.setSummary(R.string.downloads_storage_ask_summary_no_saf_notice);
|
||||
}
|
||||
|
||||
updatePreferencesSummary();
|
||||
updatePathPickers(!defaultPreferences.getBoolean(downloadStorageAsk, false));
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
prefStorageAsk.setSummary(R.string.downloads_storage_ask_summary);
|
||||
}
|
||||
|
||||
if (hasInvalidPath(downloadPathVideoPreference)
|
||||
|| hasInvalidPath(downloadPathAudioPreference)) {
|
||||
updatePreferencesSummary();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue