diff options
author | ByteHamster <info@bytehamster.com> | 2018-04-22 19:00:07 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2018-04-22 19:00:07 +0200 |
commit | 1690bd64ccd185b51dedb91ce05ae54541cacc1b (patch) | |
tree | 79b7b65fd0618ffcbbd4b9c1acdde76c399847b6 /app | |
parent | 610b1c05e1f74e5067240a0bf0f069338583b83b (diff) | |
download | AntennaPod-1690bd64ccd185b51dedb91ce05ae54541cacc1b.zip |
Actually renamy downloads to network
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/PreferenceActivity.java | 4 | ||||
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java | 14 | ||||
-rw-r--r-- | app/src/main/res/xml/preferences.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/preferences_network.xml (renamed from app/src/main/res/xml/preferences_downloads.xml) | 0 |
4 files changed, 10 insertions, 10 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/PreferenceActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/PreferenceActivity.java index 271fc667d..f7f785acf 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/PreferenceActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/PreferenceActivity.java @@ -139,8 +139,8 @@ public class PreferenceActivity extends AppCompatActivity { private int getTitle(int preferences) { switch (preferences) { - case R.xml.preferences_downloads: - return R.string.downloads_label; + case R.xml.preferences_network: + return R.string.network_pref; case R.xml.preferences_autodownload: return R.string.pref_automatic_download_title; case R.xml.preferences_playback: diff --git a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java index 5b27be45e..01cd4fba7 100644 --- a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java +++ b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java @@ -95,7 +95,7 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc private static final String PREF_SCREEN_USER_INTERFACE = "prefScreenInterface"; private static final String PREF_SCREEN_PLAYBACK = "prefScreenPlayback"; - private static final String PREF_SCREEN_DOWNLOADS = "prefScreenDownloads"; + private static final String PREF_SCREEN_NETWORK = "prefScreenNetwork"; private static final String PREF_SCREEN_SERVICES = "prefScreenServices"; private static final String PREF_SCREEN_STORAGE = "prefScreenStorage"; private static final String PREF_SCREEN_AUTODL = "prefAutoDownloadSettings"; @@ -164,8 +164,8 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc case R.xml.preferences: setupMainScreen(); break; - case R.xml.preferences_downloads: - setupDownloadsScreen(); + case R.xml.preferences_network: + setupNetworkScreen(); break; case R.xml.preferences_autodownload: setupAutoDownloadScreen(); @@ -431,7 +431,7 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc ); } - private void setupDownloadsScreen() { + private void setupNetworkScreen() { final Activity activity = ui.getActivity(); ui.findPreference(PREF_SCREEN_AUTODL).setOnPreferenceClickListener(preference -> openScreen(R.xml.preferences_autodownload, activity)); @@ -498,8 +498,8 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc openScreen(R.xml.preferences_user_interface, activity)); ui.findPreference(PREF_SCREEN_PLAYBACK).setOnPreferenceClickListener(preference -> openScreen(R.xml.preferences_playback, activity)); - ui.findPreference(PREF_SCREEN_DOWNLOADS).setOnPreferenceClickListener(preference -> - openScreen(R.xml.preferences_downloads, activity)); + ui.findPreference(PREF_SCREEN_NETWORK).setOnPreferenceClickListener(preference -> + openScreen(R.xml.preferences_network, activity)); ui.findPreference(PREF_SCREEN_SERVICES).setOnPreferenceClickListener(preference -> openScreen(R.xml.preferences_services, activity)); ui.findPreference(PREF_SCREEN_STORAGE).setOnPreferenceClickListener(preference -> @@ -616,7 +616,7 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc public void onResume(int screen) { switch (screen) { - case R.xml.preferences_downloads: + case R.xml.preferences_network: setUpdateIntervalText(); setParallelDownloadsText(UserPreferences.getParallelDownloads()); break; diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 26560d17c..65fa15b6f 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -12,7 +12,7 @@ android:icon="?attr/av_play" /> <Preference - android:key="prefScreenDownloads" + android:key="prefScreenNetwork" android:title="@string/network_pref" android:icon="?attr/av_download" /> diff --git a/app/src/main/res/xml/preferences_downloads.xml b/app/src/main/res/xml/preferences_network.xml index d084a614c..d084a614c 100644 --- a/app/src/main/res/xml/preferences_downloads.xml +++ b/app/src/main/res/xml/preferences_network.xml |