From b8293f134d63419fafde01fffc25889b8144d220 Mon Sep 17 00:00:00 2001 From: kapodamy Date: Thu, 29 Nov 2018 15:16:46 -0300 Subject: [PATCH] Update settings_keys.xml * remane max_try -> maximum_try --- .../us/shandian/giga/service/DownloadManagerService.java | 6 +++--- app/src/main/res/values/settings_keys.xml | 7 ++++--- app/src/main/res/xml/download_settings.xml | 8 ++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/us/shandian/giga/service/DownloadManagerService.java b/app/src/main/java/us/shandian/giga/service/DownloadManagerService.java index 7d88d9e2a..557c5a28a 100755 --- a/app/src/main/java/us/shandian/giga/service/DownloadManagerService.java +++ b/app/src/main/java/us/shandian/giga/service/DownloadManagerService.java @@ -165,7 +165,7 @@ public class DownloadManagerService extends Service { mPrefs.registerOnSharedPreferenceChangeListener(mPrefChangeListener); 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); } @@ -323,9 +323,9 @@ public class DownloadManagerService extends Service { } 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 { - 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); } catch (Exception e) { mManager.mPrefMaxRetry = 0; diff --git a/app/src/main/res/values/settings_keys.xml b/app/src/main/res/values/settings_keys.xml index abc2f0b8e..300217c09 100644 --- a/app/src/main/res/values/settings_keys.xml +++ b/app/src/main/res/values/settings_keys.xml @@ -17,6 +17,7 @@ use_external_video_player use_external_audio_player autoplay_through_intent + use_oldplayer volume_gesture_control brightness_gesture_control @@ -174,9 +175,9 @@ @string/charset_most_special_characters_value - downloads_max_retry - 3 - + downloads_max_retry + 3 + @string/minimize_on_exit_none_description 1 2 diff --git a/app/src/main/res/xml/download_settings.xml b/app/src/main/res/xml/download_settings.xml index e7faf40dd..e5d2031fe 100644 --- a/app/src/main/res/xml/download_settings.xml +++ b/app/src/main/res/xml/download_settings.xml @@ -30,10 +30,10 @@ android:title="@string/settings_file_replacement_character_title"/>