OSDN Git Service

Remove behind screenOrientation from camera activities.
authorWu-cheng Li <wuchengli@google.com>
Fri, 11 May 2012 12:25:22 +0000 (20:25 +0800)
committerWu-cheng Li <wuchengli@google.com>
Fri, 11 May 2012 12:36:35 +0000 (20:36 +0800)
Camera has both landscape and portrait layouts. Screen orientation
will be set in onCreate. "behind" is not needed anymore.

bug:6480864

Change-Id: I6fe3bbe85addf30bae0d037fdddd0ee8569238de

AndroidManifest.xml

index 7d97ce9..d60ba3f 100644 (file)
                 android:icon="@mipmap/ic_launcher_camera"
                 android:configChanges="orientation|screenSize|keyboardHidden"
                 android:clearTaskOnLaunch="true"
-                android:screenOrientation="behind"
                 android:windowSoftInputMode="stateAlwaysHidden|adjustPan">
             <intent-filter>
                 <action android:name="android.media.action.IMAGE_CAPTURE" />
                 android:configChanges="orientation|screenSize|keyboardHidden"
                 android:icon="@mipmap/ic_launcher_video_camera"
                 android:clearTaskOnLaunch="true"
-                android:screenOrientation="behind"
                 android:windowSoftInputMode="stateAlwaysHidden|adjustPan">
             <intent-filter>
                 <action android:name="android.media.action.VIDEO_CAMERA" />
                 android:theme="@style/ThemeCamera"
                 android:configChanges="orientation|screenSize|keyboardHidden"
                 android:clearTaskOnLaunch="true"
-                android:screenOrientation="behind"
                 android:windowSoftInputMode="stateAlwaysHidden|adjustPan">
         </activity>
         <receiver android:name="com.android.gallery3d.gadget.PhotoAppWidgetProvider"