You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
add more stubs to make exoplayer not crash
This commit is contained in:
@@ -32,4 +32,12 @@ public class AudioManager {
|
||||
public int getStreamVolume(int streamType) {
|
||||
return 0; // arbitrary, shouldn't matter too much?
|
||||
}
|
||||
|
||||
public int getStreamMaxVolume(int streamType) {
|
||||
return 100;
|
||||
}
|
||||
|
||||
public int requestAudioFocus(OnAudioFocusChangeListener listener, int streamType, int durationHint) {
|
||||
return /*AUDIOFOCUS_REQUEST_GRANTED*/1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user