android-impl: fix regressions that made angry birds not work anymore

This commit is contained in:
Mis012
2023-11-23 15:29:03 +01:00
parent 878b957380
commit 1b8480a7d0
2 changed files with 6 additions and 1 deletions

View File

@@ -328,6 +328,11 @@ public class Context extends Object {
public ComponentName startService(Intent intent) {
ComponentName component = intent.getComponent();
if(component == null) {
Slog.w(TAG, "startService: component is null");
return null;
}
try {
Class<? extends Service> cls = Class.forName(component.getClassName()).asSubclass(Service.class);
if (!runningServices.containsKey(cls)) {

View File

@@ -12,7 +12,7 @@ public class EGLContext {
}
// FIXME - not all GLs are created equal
public static GL getGL() {
public GL getGL() {
return GL_INSTANCE;
}