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
Service: extend ContextWrapper
This commit is contained in:
@@ -1,10 +1,15 @@
|
|||||||
package android.app;
|
package android.app;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.content.ContextWrapper;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
|
|
||||||
public abstract class Service extends Context {
|
public abstract class Service extends ContextWrapper {
|
||||||
|
|
||||||
|
public Service() {
|
||||||
|
super(null);
|
||||||
|
}
|
||||||
|
|
||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
System.out.println("Service.onCreate() called");
|
System.out.println("Service.onCreate() called");
|
||||||
|
|||||||
Reference in New Issue
Block a user