summaryrefslogtreecommitdiff
path: root/Source/Android/src
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2013-06-23 21:17:37 -0500
committerRyan Houdek <Sonicadvance1@gmail.com>2013-06-24 01:42:35 -0500
commit852698ceef5a4a48aff89e83a9356e7f03e4bf02 (patch)
tree4c5c693002cd2db1d22478b4ea99424345b7f6e9 /Source/Android/src
parentae395639b0dab9685664b12efb06fe9c0a795deb (diff)
[Android] On first run, open up the navigation drawer so people realize that there is a drawer.
Diffstat (limited to 'Source/Android/src')
-rw-r--r--Source/Android/src/org/dolphinemu/dolphinemu/GameListActivity.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/GameListActivity.java b/Source/Android/src/org/dolphinemu/dolphinemu/GameListActivity.java
index 825ba5bdd2..25d3adb9fb 100644
--- a/Source/Android/src/org/dolphinemu/dolphinemu/GameListActivity.java
+++ b/Source/Android/src/org/dolphinemu/dolphinemu/GameListActivity.java
@@ -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()