mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
[Android] On first run, open up the navigation drawer so people realize that there is a drawer.
This commit is contained in:
parent
ae395639b0
commit
852698ceef
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user