Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e098c17 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix arguments capture in SoundEffectsHelper" into rvc-dev am: cc91c675

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12150230

Change-Id: Idb5b028b3dd34b3d7c7de682499657d7273a796a
parents f5cb5d71 cc91c675
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -436,11 +436,12 @@ class SoundEffectsHelper {
                    onUnloadSoundEffects();
                    onUnloadSoundEffects();
                    break;
                    break;
                case MSG_PLAY_EFFECT:
                case MSG_PLAY_EFFECT:
                    final int effect = msg.arg1, volume = msg.arg2;
                    onLoadSoundEffects(new OnEffectsLoadCompleteHandler() {
                    onLoadSoundEffects(new OnEffectsLoadCompleteHandler() {
                        @Override
                        @Override
                        public void run(boolean success) {
                        public void run(boolean success) {
                            if (success) {
                            if (success) {
                                onPlaySoundEffect(msg.arg1 /*effect*/, msg.arg2 /*volume*/);
                                onPlaySoundEffect(effect, volume);
                            }
                            }
                        }
                        }
                    });
                    });