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
android-impl: fix regressions that made angry birds not work anymore
This commit is contained in:
@@ -328,6 +328,11 @@ public class Context extends Object {
|
|||||||
|
|
||||||
public ComponentName startService(Intent intent) {
|
public ComponentName startService(Intent intent) {
|
||||||
ComponentName component = intent.getComponent();
|
ComponentName component = intent.getComponent();
|
||||||
|
if(component == null) {
|
||||||
|
Slog.w(TAG, "startService: component is null");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Class<? extends Service> cls = Class.forName(component.getClassName()).asSubclass(Service.class);
|
Class<? extends Service> cls = Class.forName(component.getClassName()).asSubclass(Service.class);
|
||||||
if (!runningServices.containsKey(cls)) {
|
if (!runningServices.containsKey(cls)) {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ public class EGLContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FIXME - not all GLs are created equal
|
// FIXME - not all GLs are created equal
|
||||||
public static GL getGL() {
|
public GL getGL() {
|
||||||
return GL_INSTANCE;
|
return GL_INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user