-
Notifications
You must be signed in to change notification settings - Fork 0
/
preview_no_rotate.patch
31 lines (31 loc) · 1.46 KB
/
preview_no_rotate.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index e65ea54..3ee7fb6 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -52,7 +52,7 @@
<activity
android:name="com.android.camera.CameraActivity"
android:clearTaskOnLaunch="true"
- android:configChanges="orientation|screenSize|keyboardHidden"
+ android:screenOrientation="portrait"
android:label="@string/app_name"
android:launchMode="singleTask"
android:taskAffinity="com.android.camera.CameraActivity"
@@ -88,7 +88,7 @@
android:name="com.android.camera.CaptureActivity"
android:label="@string/app_name"
android:theme="@style/Theme.Camera"
- android:configChanges="orientation|screenSize|keyboardHidden"
+ android:screenOrientation="portrait"
android:windowSoftInputMode="stateAlwaysHidden|adjustPan">
<intent-filter>
<action android:name="android.media.action.IMAGE_CAPTURE" />
@@ -114,7 +114,7 @@
<activity
android:name="com.android.camera.SecureCameraActivity"
android:clearTaskOnLaunch="true"
- android:configChanges="orientation|screenSize|keyboardHidden"
+ android:screenOrientation="portrait"
android:excludeFromRecents="true"
android:label="@string/app_name"
android:taskAffinity="com.android.camera.SecureCameraActivity"