Merge pull request #1562 from mfietz/issue/1487-default-update-interval

Default update interval for fresh installations
This commit is contained in:
Tom Hennen 2016-01-21 16:27:33 -05:00
commit 6d6a8d2fcd
1 changed files with 3 additions and 0 deletions

View File

@ -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();