[Android] On first run, open up the navigation drawer so people realize that there is a drawer.

This commit is contained in:
Ryan Houdek 2013-06-23 21:17:37 -05:00
parent ae395639b0
commit 852698ceef

View File

@ -152,6 +152,16 @@ public class GameListActivity extends Activity {
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()