diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e2c7beb..e927bbc 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -14,7 +14,7 @@ + android:configChanges="orientation|screenSize"> diff --git a/app/src/main/java/org/openlp/android2/OpenLP.java b/app/src/main/java/org/openlp/android2/OpenLP.java index da050e7..98de6ce 100644 --- a/app/src/main/java/org/openlp/android2/OpenLP.java +++ b/app/src/main/java/org/openlp/android2/OpenLP.java @@ -20,6 +20,7 @@ package org.openlp.android2; import android.content.Intent; import android.content.SharedPreferences; +import android.content.res.Configuration; import android.preference.PreferenceManager; import android.support.v7.app.ActionBarActivity; import android.app.ActionBar; @@ -91,6 +92,21 @@ public class OpenLP extends ActionBarActivity } } + /** + * Handle configuration change. + * + * @param newConfig The new Config. + */ + @Override + public void onConfigurationChanged(Configuration newConfig) { + super.onConfigurationChanged(newConfig); + } + + /** + * Handle the selection of the Navigation Menu + * + * @param position Which item has been selected. + */ @Override public void onNavigationDrawerItemSelected(int position) { // update the main content by replacing fragments