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

Commit e085dd72 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 am: 7e098c17

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

Change-Id: Ib1a4c2a96fdfe8b50cf7bb63533519b87067ad2c
parents 1dd7f43a 7e098c17
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);
                            }
                            }
                        }
                        }
                    });
                    });