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
multiple additions and fixes for the Java APIs
Stuff needed for WhatsApp support
This commit is contained in:
@@ -16,7 +16,10 @@ public abstract class Service extends Context {
|
||||
|
||||
public abstract IBinder onBind(Intent intent);
|
||||
|
||||
public abstract int onStartCommand(Intent intent, int flags, int startId);
|
||||
public int onStartCommand(Intent intent, int flags, int startId) {
|
||||
System.out.println("Service.onStartCommand(" + intent + ", " + flags + ", " + startId + ") called");
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void startForeground(int id, Notification notification) {
|
||||
System.out.println("startForeground(" + id + ", " + notification + ") called");
|
||||
|
||||
Reference in New Issue
Block a user