summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-08-25 17:25:46 +0800
committerWu-cheng Li <wuchengli@google.com>2011-08-25 17:35:23 +0800
commit055cb1ce63c83e6ddf27595daf9864faf7442e65 (patch)
treeab177194ff11d1dfbe707d3a9a1983d4e74b97e7 /AndroidManifest.xml
parenta907c122ccec649c6cedf3a45b1c426a5fca932e (diff)
downloadLegacyCamera-055cb1ce63c83e6ddf27595daf9864faf7442e65.zip
LegacyCamera-055cb1ce63c83e6ddf27595daf9864faf7442e65.tar.gz
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
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml6
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">