mirror of
https://gitlab.com/openlp/android.git
synced 2024-12-22 11:52:49 +00:00
Fix rotation
This commit is contained in:
parent
b36fbf3d50
commit
b7e29a7f5f
@ -14,7 +14,7 @@
|
||||
<activity
|
||||
android:name=".OpenLP"
|
||||
android:label="@string/app_name"
|
||||
android:screenOrientation="landscape">
|
||||
android:configChanges="orientation|screenSize">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user