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 APIs needed for NewPipe
This commit is contained in:
@@ -6,7 +6,9 @@ import android.os.IBinder;
|
||||
|
||||
public abstract class Service extends Context {
|
||||
|
||||
public abstract void onCreate();
|
||||
public void onCreate() {
|
||||
System.out.println("Service.onCreate() called");
|
||||
}
|
||||
|
||||
public abstract IBinder onBind(Intent intent);
|
||||
|
||||
@@ -16,4 +18,8 @@ public abstract class Service extends Context {
|
||||
System.out.println("startForeground(" + id + ", " + notification + ") called");
|
||||
}
|
||||
|
||||
public void stopForeground(boolean remove) {
|
||||
System.out.println("stopForeground(" + remove + ") called");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user