summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CaptureUI.java
diff options
context:
space:
mode:
authorxianming wang <mingwax@codeaurora.org>2018-12-07 16:21:50 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-12-14 00:23:49 -0800
commit0f08a06d6d4167f3d034bff685ee3da296760baa (patch)
tree700e3216cb63154ae19839bfcd08f97ec075fdd2 /src/com/android/camera/CaptureUI.java
parent07d7d91f8e6afca1cda50c6f0d63120518a26a57 (diff)
downloadandroid_packages_apps_Snap-0f08a06d6d4167f3d034bff685ee3da296760baa.tar.gz
android_packages_apps_Snap-0f08a06d6d4167f3d034bff685ee3da296760baa.tar.bz2
android_packages_apps_Snap-0f08a06d6d4167f3d034bff685ee3da296760baa.zip
SnapdragonCamera: Fix mSoundPool is NULL and load resource slowly
Init the SouldPool when the mCountDownView is not NULL and the SoundPool is NULL. CRs-Fixed: 2360653 Change-Id: I913bbd0c8b190a2a73d0d0123ffa8753d4ec9f91
Diffstat (limited to 'src/com/android/camera/CaptureUI.java')
-rwxr-xr-xsrc/com/android/camera/CaptureUI.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java
index 85ac9e293..c5875327d 100755
--- a/src/com/android/camera/CaptureUI.java
+++ b/src/com/android/camera/CaptureUI.java
@@ -1551,7 +1551,11 @@ public class CaptureUI implements FocusOverlayManager.FocusUI,
}
public void initCountDownView() {
- if (mCountDownView == null) initializeCountDown();
+ if (mCountDownView == null) {
+ initializeCountDown();
+ } else {
+ mCountDownView.initSoundPool();
+ }
}
public void releaseSoundPool() {