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

Commit 018d6b92 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: 7dd9dcc4

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

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