summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqimengp <qimengp@codeaurora.org>2016-09-13 16:53:13 +0800
committerSteve Kondik <steve@cyngn.com>2016-11-13 23:50:56 -0800
commit915459da5fbd7fc919c4add8ead6930ab473584f (patch)
treeafba1a0b88936e9f355c70d2ce845e7b9bc8ec20
parenta0394c51cd58c6a94d522ce4cb05671b12662146 (diff)
downloadandroid_packages_apps_Snap-915459da5fbd7fc919c4add8ead6930ab473584f.zip
android_packages_apps_Snap-915459da5fbd7fc919c4add8ead6930ab473584f.tar.gz
android_packages_apps_Snap-915459da5fbd7fc919c4add8ead6930ab473584f.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