mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-15 05:11:08 +01:00
Update settings_keys.xml
* remane max_try -> maximum_try
This commit is contained in:
parent
7e9bcff0f3
commit
b8293f134d
@ -165,7 +165,7 @@ public class DownloadManagerService extends Service {
|
|||||||
mPrefs.registerOnSharedPreferenceChangeListener(mPrefChangeListener);
|
mPrefs.registerOnSharedPreferenceChangeListener(mPrefChangeListener);
|
||||||
|
|
||||||
handlePreferenceChange(mPrefs, getString(R.string.downloads_cross_network));
|
handlePreferenceChange(mPrefs, getString(R.string.downloads_cross_network));
|
||||||
handlePreferenceChange(mPrefs, getString(R.string.downloads_max_retry));
|
handlePreferenceChange(mPrefs, getString(R.string.downloads_maximum_retry));
|
||||||
|
|
||||||
wakeLock = new LockManager(this);
|
wakeLock = new LockManager(this);
|
||||||
}
|
}
|
||||||
@ -323,9 +323,9 @@ public class DownloadManagerService extends Service {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void handlePreferenceChange(SharedPreferences prefs, String key) {
|
private void handlePreferenceChange(SharedPreferences prefs, String key) {
|
||||||
if (key.equals(getString(R.string.downloads_max_retry))) {
|
if (key.equals(getString(R.string.downloads_maximum_retry))) {
|
||||||
try {
|
try {
|
||||||
String value = prefs.getString(key, getString(R.string.downloads_max_retry_default));
|
String value = prefs.getString(key, getString(R.string.downloads_maximum_retry_default));
|
||||||
mManager.mPrefMaxRetry = Integer.parseInt(value);
|
mManager.mPrefMaxRetry = Integer.parseInt(value);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
mManager.mPrefMaxRetry = 0;
|
mManager.mPrefMaxRetry = 0;
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<string name="use_external_video_player_key" translatable="false">use_external_video_player</string>
|
<string name="use_external_video_player_key" translatable="false">use_external_video_player</string>
|
||||||
<string name="use_external_audio_player_key" translatable="false">use_external_audio_player</string>
|
<string name="use_external_audio_player_key" translatable="false">use_external_audio_player</string>
|
||||||
<string name="autoplay_through_intent_key" translatable="false">autoplay_through_intent</string>
|
<string name="autoplay_through_intent_key" translatable="false">autoplay_through_intent</string>
|
||||||
|
<string name="use_old_player_key" translatable="false">use_oldplayer</string>
|
||||||
|
|
||||||
<string name="volume_gesture_control_key" translatable="false">volume_gesture_control</string>
|
<string name="volume_gesture_control_key" translatable="false">volume_gesture_control</string>
|
||||||
<string name="brightness_gesture_control_key" translatable="false">brightness_gesture_control</string>
|
<string name="brightness_gesture_control_key" translatable="false">brightness_gesture_control</string>
|
||||||
@ -174,9 +175,9 @@
|
|||||||
|
|
||||||
<string name="default_file_charset_value" translatable="false">@string/charset_most_special_characters_value</string>
|
<string name="default_file_charset_value" translatable="false">@string/charset_most_special_characters_value</string>
|
||||||
|
|
||||||
<string name="downloads_max_retry" translatable="false">downloads_max_retry</string>
|
<string name="downloads_maximum_retry" translatable="false">downloads_max_retry</string>
|
||||||
<string name="downloads_max_retry_default" translatable="false">3</string>
|
<string name="downloads_maximum_retry_default" translatable="false">3</string>
|
||||||
<string-array name="downloads_max_retry_list" translatable="false">
|
<string-array name="downloads_maximum_retry_list" translatable="false">
|
||||||
<item translatable="true">@string/minimize_on_exit_none_description</item>
|
<item translatable="true">@string/minimize_on_exit_none_description</item>
|
||||||
<item>1</item>
|
<item>1</item>
|
||||||
<item>2</item>
|
<item>2</item>
|
||||||
|
@ -30,10 +30,10 @@
|
|||||||
android:title="@string/settings_file_replacement_character_title"/>
|
android:title="@string/settings_file_replacement_character_title"/>
|
||||||
|
|
||||||
<ListPreference
|
<ListPreference
|
||||||
android:defaultValue="@string/downloads_max_retry_default"
|
android:defaultValue="@string/downloads_maximum_retry_default"
|
||||||
android:entries="@array/downloads_max_retry_list"
|
android:entries="@array/downloads_maximum_retry_list"
|
||||||
android:entryValues="@array/downloads_max_retry_list"
|
android:entryValues="@array/downloads_maximum_retry_list"
|
||||||
android:key="@string/downloads_max_retry"
|
android:key="@string/downloads_maximum_retry"
|
||||||
android:summary="@string/max_retry_desc"
|
android:summary="@string/max_retry_desc"
|
||||||
android:title="@string/max_retry_msg" />
|
android:title="@string/max_retry_msg" />
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user