summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/SystemUI/src/com/android/systemui/dagger/SystemServicesModule.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/dagger/SystemServicesModule.java b/packages/SystemUI/src/com/android/systemui/dagger/SystemServicesModule.java
index 434e2d3f4791..891bf615b8f4 100644
--- a/packages/SystemUI/src/com/android/systemui/dagger/SystemServicesModule.java
+++ b/packages/SystemUI/src/com/android/systemui/dagger/SystemServicesModule.java
@@ -58,12 +58,13 @@ public class SystemServicesModule {
@Singleton
@Provides
- static IActivityManager providesIActivityManager() {
+ static IActivityManager provideIActivityManager() {
return ActivityManager.getService();
}
@Provides
- static IWallpaperManager provideWallPaperManager() {
+ @Nullable
+ static IWallpaperManager provideIWallPaperManager() {
return IWallpaperManager.Stub.asInterface(
ServiceManager.getService(Context.WALLPAPER_SERVICE));
}
@@ -109,13 +110,13 @@ public class SystemServicesModule {
}
@Provides
- static WallpaperManager providesWallpaperManager(Context context) {
+ static WallpaperManager provideWallpaperManager(Context context) {
return (WallpaperManager) context.getSystemService(Context.WALLPAPER_SERVICE);
}
@Singleton
@Provides
- static WindowManager providesWindowManager(Context context) {
+ static WindowManager provideWindowManager(Context context) {
return context.getSystemService(WindowManager.class);
}