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
api-impl: add misc APIs needed for AntennaPod
This commit is contained in:
@@ -7,6 +7,7 @@ import android.content.Context;
|
||||
import android.media.AudioAttributes;
|
||||
import android.media.MediaDescription;
|
||||
import android.media.MediaMetadata;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
|
||||
public class MediaSession {
|
||||
@@ -72,6 +73,14 @@ public class MediaSession {
|
||||
|
||||
public void setPlaybackToLocal(AudioAttributes audioAttributes) {}
|
||||
|
||||
public void setExtras(Bundle extras) {}
|
||||
|
||||
public void setSessionActivity(PendingIntent pendingIntent) {}
|
||||
|
||||
public boolean isActive() {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected native void nativeSetState(int state, long actions, long position, long updateTime, String title, String subTitle, String artUrl);
|
||||
protected native void nativeSetCallback(Callback callback);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user