Show add feed fragment on first launch

This commit is contained in:
ByteHamster 2019-08-20 18:03:25 +02:00
parent ed63f41401
commit f099092af0
1 changed files with 1 additions and 0 deletions

View File

@ -233,6 +233,7 @@ public class MainActivity extends CastEnabledActivity implements NavDrawerActivi
private void checkFirstLaunch() {
SharedPreferences prefs = getSharedPreferences(PREF_NAME, MODE_PRIVATE);
if (prefs.getBoolean(PREF_IS_FIRST_LAUNCH, true)) {
loadFragment(AddFeedFragment.TAG, null);
new Handler().postDelayed(() -> drawerLayout.openDrawer(navDrawer), 1500);
// for backward compatibility, we only change defaults for fresh installs