Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] On first run, open up the navigation drawer so people reali…
…ze that there is a drawer.
  • Loading branch information
Sonicadvance1 committed Jun 24, 2013
1 parent ae39563 commit 852698c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Source/Android/src/org/dolphinemu/dolphinemu/GameListActivity.java
Expand Up @@ -152,6 +152,16 @@ protected void onCreate(Bundle savedInstanceState) {
mDrawerLayout.setDrawerListener(mDrawerToggle);

recreateFragment();

SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
boolean bFirstRun = prefs.getBoolean("FirstRun", true);
if (bFirstRun)
{
SharedPreferences.Editor editor = prefs.edit();
editor.putBoolean("FirstRun", false);
editor.commit();
mDrawerLayout.openDrawer(mDrawerList);
}
}

private void recreateFragment()
Expand Down

0 comments on commit 852698c

Please sign in to comment.