diff options
author | Tom Hennen <TomHennen@users.noreply.github.com> | 2016-01-21 16:27:33 -0500 |
---|---|---|
committer | Tom Hennen <TomHennen@users.noreply.github.com> | 2016-01-21 16:27:33 -0500 |
commit | 6d6a8d2fcda2ba2c8d1ef51049403aa6b25d31f2 (patch) | |
tree | fb7ce2afdda6c83c40643f94a2ca9e4d2799e7d0 | |
parent | 1e90f1822d55562a3965ac1ae9b68f6444330bf7 (diff) | |
parent | b8c1abf99b2c9341fde9915cd8d5620e591ad76e (diff) | |
download | AntennaPod-6d6a8d2fcda2ba2c8d1ef51049403aa6b25d31f2.zip |
Merge pull request #1562 from mfietz/issue/1487-default-update-interval
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(); |