diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2016-01-17 13:40:55 +0100 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2016-01-17 13:41:54 +0100 |
commit | b8c1abf99b2c9341fde9915cd8d5620e591ad76e (patch) | |
tree | 2c3478f80f6be2a2e57c693db21d1158f273aa8a | |
parent | d487949a3680f3d8ef6d766cea60cd154d7f7f05 (diff) | |
download | AntennaPod-b8c1abf99b2c9341fde9915cd8d5620e591ad76e.zip |
Set default update interval for fresh installations
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java index 2181e7d2d..f96764b42 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java @@ -224,6 +224,9 @@ public class MainActivity extends AppCompatActivity implements NavDrawerActivity if (prefs.getBoolean(PREF_IS_FIRST_LAUNCH, true)) { new Handler().postDelayed(() -> drawerLayout.openDrawer(navDrawer), 1500); + // for backward compatibility, we only change defaults for fresh installs + UserPreferences.setUpdateInterval(12); + SharedPreferences.Editor edit = prefs.edit(); edit.putBoolean(PREF_IS_FIRST_LAUNCH, false); edit.commit(); |