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

Commit 0b06c341 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix arguments capture in SoundEffectsHelper"

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