Skip to content

armgit / haven

Public Imported from GitHub
0

Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors

Fixes #100: Device orientation and handling orientation change

Anupam Das2c47b51f73b0
diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml
index bbf5a01..6512bae 100644
--- a/src/main/AndroidManifest.xml
+++ b/src/main/AndroidManifest.xml
@@ -23,6 +23,7 @@
<activity
android:name="org.havenapp.main.ListActivity"
android:label="@string/title_activity_start"
+ android:configChanges="orientation|screenSize"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@@ -33,6 +34,7 @@
<activity
android:name="org.havenapp.main.SettingsActivity"
android:label="@string/title_activity_start"
+ android:configChanges="orientation|screenSize"
android:windowSoftInputMode="stateHidden" />
<activity android:name="org.havenapp.main.ui.PPAppIntro"
android:screenOrientation="portrait"
@@ -40,8 +42,8 @@
<activity
android:name="org.havenapp.main.MonitorActivity"
android:label="@string/app_name"
- android:launchMode="singleTop"
- android:screenOrientation="portrait" />
+ android:configChanges="orientation|screenSize"
+ android:launchMode="singleTop" />
<service android:name="org.havenapp.main.service.MonitorService"
android:exported="false" />
@@ -62,6 +64,7 @@
<activity
android:name="org.havenapp.main.ui.EventActivity"
android:label="@string/title_activity_event"
+ android:configChanges="orientation|screenSize"
android:theme="@style/AppTheme" />
<activity android:name="org.havenapp.main.ui.MicrophoneConfigureActivity"
android:screenOrientation="portrait"/>