diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-08-25 17:25:46 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-08-25 17:35:23 +0800 |
commit | 055cb1ce63c83e6ddf27595daf9864faf7442e65 (patch) | |
tree | ab177194ff11d1dfbe707d3a9a1983d4e74b97e7 | |
parent | a907c122ccec649c6cedf3a45b1c426a5fca932e (diff) | |
download | packages_apps_LegacyCamera-055cb1ce63c83e6ddf27595daf9864faf7442e65.zip packages_apps_LegacyCamera-055cb1ce63c83e6ddf27595daf9864faf7442e65.tar.gz packages_apps_LegacyCamera-055cb1ce63c83e6ddf27595daf9864faf7442e65.tar.bz2 |
Prevent camera app being restarted when power key is pressed.
When power key is pressed, the framework may change the orientation
and the screen size. Add the flag to handle the runtime change
by the app itself.
bug:5210804
Change-Id: I96bd515883d92bd75492f4d70ca6705f2ccef0fb
-rw-r--r-- | AndroidManifest.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 4c68e0b..53fb046 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -29,7 +29,7 @@ </intent-filter> </receiver> <activity android:name="com.android.camera.Camera" - android:configChanges="orientation|keyboardHidden" + android:configChanges="orientation|screenSize|keyboardHidden" android:screenOrientation="landscape" android:clearTaskOnLaunch="true" android:windowSoftInputMode="stateAlwaysHidden|adjustPan"> @@ -49,7 +49,7 @@ </activity> <activity android:name="com.android.camera.VideoCamera" android:label="@string/video_camera_label" - android:configChanges="orientation|keyboardHidden" + android:configChanges="orientation|screenSize|keyboardHidden" android:icon="@mipmap/ic_launcher_video_camera" android:screenOrientation="landscape" android:clearTaskOnLaunch="true" @@ -64,7 +64,7 @@ </intent-filter> </activity> <activity android:name="com.android.camera.panorama.PanoramaActivity" - android:configChanges="orientation|keyboardHidden" + android:configChanges="orientation|screenSize|keyboardHidden" android:screenOrientation="landscape" android:clearTaskOnLaunch="true" android:windowSoftInputMode="stateAlwaysHidden|adjustPan"> |