OSDN Git Service

Specify android:resizeableActivity as false
authorSheng-Hao Tsao <shenghao@google.com>
Tue, 21 Mar 2017 12:55:30 +0000 (20:55 +0800)
committerSheng-hao Tsao <shenghao@google.com>
Wed, 22 Mar 2017 06:16:14 +0000 (06:16 +0000)
The camera app targets API 24 but does not specify
android:resizeableActivity so it is treated as resizeable, which
disable the orientation workaround. We should specify
android:resizeableActivity as false.

BUG=36469955
TEST=Verify in N that default camera shows correct preview

Change-Id: I97ca868e6c5b29bc156e8d856ee004b06f2b9878

AndroidManifest.xml

index df4a0c1..2d0aeeb 100644 (file)
@@ -42,6 +42,7 @@
         android:icon="@mipmap/logo_camera_color_44in48dp"
         android:label="@string/app_name"
         android:largeHeap="true"
+        android:resizeableActivity="false"
         android:restoreAnyVersion="true"
         android:supportsRtl="true"
         android:theme="@style/Theme.Camera"