From 3df1327b9b6e0f29bf8f612bd4d19ac4345e6163 Mon Sep 17 00:00:00 2001 From: Peter Serwylo Date: Tue, 19 May 2015 21:41:38 +1000 Subject: [PATCH] Force entire swap process to be portrait. Although this is usually regarded as poor form, it is currently better than the alternative which is the whole swap process poohing itself when a device is rotated. In the future, it may be worthwhile investing in designing a proper UX for landscape swap too. However the process of swapping can be quite complex if not presented well, and so it might end up being too much work to maintain two different UXes for landscape and portrait. --- F-Droid/AndroidManifest.xml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/F-Droid/AndroidManifest.xml b/F-Droid/AndroidManifest.xml index 402629bd5..d798d09f7 100644 --- a/F-Droid/AndroidManifest.xml +++ b/F-Droid/AndroidManifest.xml @@ -288,7 +288,9 @@ android:theme="@style/SwapTheme.Wizard.ReceiveSwap" android:label="" android:noHistory="true" - android:parentActivityName=".FDroid"> + android:parentActivityName=".FDroid" + android:screenOrientation="portrait" + android:configChanges="orientation|keyboardHidden"> @@ -386,7 +388,9 @@ android:label="@string/menu_swap" android:name=".views.swap.SwapActivity" android:parentActivityName=".FDroid" - android:theme="@style/SwapTheme.Wizard"> + android:theme="@style/SwapTheme.Wizard" + android:screenOrientation="portrait" + android:configChanges="orientation|keyboardHidden"> @@ -395,7 +399,9 @@ android:label="@string/swap" android:name=".views.swap.SwapAppListActivity" android:parentActivityName=".FDroid" - android:theme="@style/SwapTheme.AppList"> + android:theme="@style/SwapTheme.AppList" + android:screenOrientation="portrait" + android:configChanges="orientation|keyboardHidden">