summaryrefslogtreecommitdiffstats
path: root/core/java/android/app/SystemServiceRegistry.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/java/android/app/SystemServiceRegistry.java')
-rw-r--r--core/java/android/app/SystemServiceRegistry.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/app/SystemServiceRegistry.java b/core/java/android/app/SystemServiceRegistry.java
index 3d264c6..08f4efd 100644
--- a/core/java/android/app/SystemServiceRegistry.java
+++ b/core/java/android/app/SystemServiceRegistry.java
@@ -37,7 +37,9 @@ import android.content.IRestrictionsManager;
import android.content.RestrictionsManager;
import android.content.pm.ILauncherApps;
import android.content.pm.LauncherApps;
+import android.content.res.IThemeService;
import android.content.res.Resources;
+import android.content.res.ThemeManager;
import android.hardware.ConsumerIrManager;
import android.hardware.ISerialManager;
import android.hardware.SensorManager;
@@ -704,6 +706,15 @@ final class SystemServiceRegistry {
public RadioManager createService(ContextImpl ctx) {
return new RadioManager(ctx);
}});
+
+ registerService(Context.THEME_SERVICE, ThemeManager.class,
+ new CachedServiceFetcher<ThemeManager>() {
+ public ThemeManager createService(ContextImpl ctx) {
+ IBinder b = ServiceManager.getService(Context.THEME_SERVICE);
+ IThemeService service = IThemeService.Stub.asInterface(b);
+ return new ThemeManager(ctx.getOuterContext(),
+ service);
+ }});
}
/**