summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqimengp <qimengp@codeaurora.org>2016-09-13 16:53:13 +0800
committerMichael Bestas <mikeioannina@gmail.com>2017-01-04 22:00:41 +0200
commit9f0b097bb7a0df711f527df20ded17ad6f91d4d1 (patch)
tree58f13be74ff69a786e1a45da041bbcbb8a0765d0
parent924a03cc4f562c9f23bd7f230faf04e4857a8b9a (diff)
downloadandroid_packages_apps_Snap-9f0b097bb7a0df711f527df20ded17ad6f91d4d1.zip
android_packages_apps_Snap-9f0b097bb7a0df711f527df20ded17ad6f91d4d1.tar.gz
android_packages_apps_Snap-9f0b097bb7a0df711f527df20ded17ad6f91d4d1.tar.bz2
SnapdragonCamera: Fix ANR during open camera
When preview UI destory, app call Camera API as order: setPreviewDispaly(null) and stopPreview(). In case native window disconnected before stopPreview(), will cause ANR, since calling to native window fails. Native window is taken care within camera framework. So, by removing setPreviewDisplay(null), can avoid this issue. Change-Id: Id804f2e0876a61d974e58dd996c46fe769f69856
-rwxr-xr-x[-rw-r--r--]src/com/android/camera/PhotoModule.java0
1 files changed, 0 insertions, 0 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java
index c4434bd..c4434bd 100644..100755
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java