diff options
-rw-r--r-- | org.fox.ttrss/src/main/AndroidManifest.xml | 2 | ||||
-rw-r--r-- | org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java | 12 |
2 files changed, 11 insertions, 3 deletions
diff --git a/org.fox.ttrss/src/main/AndroidManifest.xml b/org.fox.ttrss/src/main/AndroidManifest.xml index ffa71180..ddbabc39 100644 --- a/org.fox.ttrss/src/main/AndroidManifest.xml +++ b/org.fox.ttrss/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.fox.ttrss" - android:versionCode="270" + android:versionCode="271" android:versionName="1.64" > <uses-sdk diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java index bd365248..ad63eeee 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedsActivity.java @@ -76,6 +76,12 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe public void onDrawerClosed(View drawerView) { super.onDrawerClosed(drawerView); + if (m_prefs.getBoolean("drawer_open_on_start", true)) { + SharedPreferences.Editor editor = m_prefs.edit(); + editor.putBoolean("drawer_open_on_start", false); + editor.commit(); + } + invalidateOptionsMenu(); } }; @@ -88,7 +94,7 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe } if (savedInstanceState == null) { - if (m_drawerLayout != null) { + if (m_drawerLayout != null && m_prefs.getBoolean("drawer_open_on_start", true)) { m_drawerLayout.openDrawer(Gravity.START); } @@ -144,7 +150,9 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe ft.replace(R.id.headlines_fragment, hf, FRAG_HEADLINES); ft.commit(); - + + m_feedIsSelected = true; + AppRater.appLaunched(this); checkTrial(true); |