summaryrefslogtreecommitdiffstats
path: root/services/core/java/com/android/server/UiModeManagerService.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2014-02-10 19:47:07 -0800
committerJeff Brown <jeffbrown@google.com>2014-02-10 20:01:43 -0800
commitb880d880c6cd989eacc28c365fc9a41d31900da1 (patch)
tree660d93bbe7f1b74aa9eac16ac69efe16f67f346e /services/core/java/com/android/server/UiModeManagerService.java
parentd9f9da396b41f394991f676bc74dcfc59c7070a8 (diff)
downloadframeworks_base-b880d880c6cd989eacc28c365fc9a41d31900da1.zip
frameworks_base-b880d880c6cd989eacc28c365fc9a41d31900da1.tar.gz
frameworks_base-b880d880c6cd989eacc28c365fc9a41d31900da1.tar.bz2
Make SystemService constructor take a Context.
This change simplifies the process of initializing a SystemService by folding the onCreate() step back into the constructor. It removes some ambuiguity about what work should happen in the constructor and should make it possible for services to retain most of their final fields after refactoring into the new pattern. Change-Id: I25f41af0321bc01898658ab44b369f9c5d16800b
Diffstat (limited to 'services/core/java/com/android/server/UiModeManagerService.java')
-rw-r--r--services/core/java/com/android/server/UiModeManagerService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/UiModeManagerService.java b/services/core/java/com/android/server/UiModeManagerService.java
index de912dc..ad693d0 100644
--- a/services/core/java/com/android/server/UiModeManagerService.java
+++ b/services/core/java/com/android/server/UiModeManagerService.java
@@ -88,6 +88,10 @@ final class UiModeManagerService extends SystemService {
private PowerManager.WakeLock mWakeLock;
+ public UiModeManagerService(Context context) {
+ super(context);
+ }
+
private static Intent buildHomeIntent(String category) {
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(category);