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/ui | |
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/ui')
-rwxr-xr-x | src/com/android/camera/ui/CountDownView.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/camera/ui/CountDownView.java b/src/com/android/camera/ui/CountDownView.java index 7e1f28d52..d9d0244e5 100755 --- a/src/com/android/camera/ui/CountDownView.java +++ b/src/com/android/camera/ui/CountDownView.java @@ -67,6 +67,15 @@ public class CountDownView extends FrameLayout { } } + public void releaseSoundPool() { + if (mSoundPool != null) { + mSoundPool.unload(R.raw.beep_once); + mSoundPool.unload(R.raw.beep_twice); + mSoundPool.release(); + mSoundPool = null; + } + } + public boolean isCountingDown() { return mRemainingSecs > 0; }; |