diff options
author | xianming wang <mingwax@codeaurora.org> | 2018-10-30 14:23:14 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-11-07 19:20:52 -0800 |
commit | e797d620ed00d38810af5c62d3776814f3a1f066 (patch) | |
tree | 1a824a8356179eb3dc0d18cea3c65c23f78e9dc9 /src/com/android/camera/CaptureUI.java | |
parent | 644a5781c1c3af5824875f45b9a6f23bc3ca775c (diff) | |
download | android_packages_apps_Snap-e797d620ed00d38810af5c62d3776814f3a1f066.tar.gz android_packages_apps_Snap-e797d620ed00d38810af5c62d3776814f3a1f066.tar.bz2 android_packages_apps_Snap-e797d620ed00d38810af5c62d3776814f3a1f066.zip |
SnapdragonCamera: Fix no sound at 2s in "Countdown timer"
Move the SoundPool.load method more ahead play method for load the
sound completed so that the sound can play.
CRs-Fixed: 2338189
Change-Id: If4282aea8c081c54f40e1d8a5e091f412c7e3e53
Diffstat (limited to 'src/com/android/camera/CaptureUI.java')
-rwxr-xr-x | src/com/android/camera/CaptureUI.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java index c4952eb87..8b72d9259 100755 --- a/src/com/android/camera/CaptureUI.java +++ b/src/com/android/camera/CaptureUI.java @@ -1545,8 +1545,17 @@ public class CaptureUI implements FocusOverlayManager.FocusUI, showUIAfterCountDown(); } - public void startCountDown(int sec, boolean playSound) { + public void initCountDownView() { if (mCountDownView == null) initializeCountDown(); + } + + public void releaseSoundPool() { + if (mCountDownView != null) { + mCountDownView.releaseSoundPool(); + } + } + + public void startCountDown(int sec, boolean playSound) { mCountDownView.startCountDown(sec, playSound); hideUIWhileCountDown(); } |