summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamera Software Integration <camswint@localhost>2015-11-13 11:10:02 -0800
committerCamera Software Integration <camswint@localhost>2015-12-22 16:23:44 +0530
commitd074a0ed7d81cbad424f738df27766bbba496ffa (patch)
tree3a5c8abeac68c98396b8deb90b141fd4db04027a
parenteadf503b74cd3efb5d672fc6026bfad1d8cedadb (diff)
downloadandroid_packages_apps_Snap-d074a0ed7d81cbad424f738df27766bbba496ffa.tar.gz
android_packages_apps_Snap-d074a0ed7d81cbad424f738df27766bbba496ffa.tar.bz2
android_packages_apps_Snap-d074a0ed7d81cbad424f738df27766bbba496ffa.zip
SnapdragonCamera: Remove double onResume call
For panorama module with screen lock set, when user suspend and resume the app back, onResume is called twice, calling openCamera twice as well. This is resulting in crash. Remove calling resume from screen-on receiver. Change-Id: I9c6a0baca9aef1732ac003f3cb122fc3866a7b35 CRs-Fixed: 927063
-rw-r--r--src/com/android/camera/CameraActivity.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/com/android/camera/CameraActivity.java b/src/com/android/camera/CameraActivity.java
index 47c938496..437549592 100644
--- a/src/com/android/camera/CameraActivity.java
+++ b/src/com/android/camera/CameraActivity.java
@@ -339,11 +339,6 @@ public class CameraActivity extends Activity
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
- if (action.equals(Intent.ACTION_SCREEN_ON)) {
- mCurrentModule.onResumeBeforeSuper();
- mCurrentModule.onResumeAfterSuper();
- }
-
if (action.equals(Intent.ACTION_SCREEN_OFF)) {
if (mSecureCamera) {
finish();
@@ -1421,7 +1416,6 @@ public class CameraActivity extends Activity
// Filter for screen off so that we can finish secure camera activity
// when screen is off.
IntentFilter filter = new IntentFilter(Intent.ACTION_SCREEN_OFF);
- filter.addAction(Intent.ACTION_SCREEN_ON);
registerReceiver(mScreenOffReceiver, filter);
// TODO: This static screen off event receiver is a workaround to the
// double onResume() invocation (onResume->onPause->onResume). We should