api-impl: stubs and fixes for Compose Stopwatch and LibreSudoku

This commit is contained in:
Julian Winkler
2024-12-10 23:23:14 +01:00
parent b9272aa150
commit 1398125eb5
28 changed files with 238 additions and 36 deletions

View File

@@ -231,8 +231,8 @@ public class Context extends Object {
}
}
public final <T> T getSystemService(Class<T> serviceClass) {
return null;
public final Object getSystemService(Class<?> serviceClass) throws InstantiationException, IllegalAccessException, InvocationTargetException {
return serviceClass.getConstructors()[0].newInstance();
}
public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {