Merge "Fix arguments capture in SoundEffectsHelper"
This commit is contained in:
committed by
Android (Google) Code Review
commit
0b06c341bf
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user