Merge "Fix arguments capture in SoundEffectsHelper" into rvc-dev am: cc91c675cf am: 7dd9dcc47d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12150230 Change-Id: I18e75f5a417e155541cd3e4f23010d9212399c16
This commit is contained in:
@@ -436,11 +436,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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user