am 99d60784: am 415e6f8e: Merge "Fix issue with early service start" into klp-modular-dev

* commit '99d607844da2b100afe3d134c1c006f4cc5b35b1':
  Fix issue with early service start
This commit is contained in:
Adam Lesinski
2014-03-25 17:32:26 +00:00
committed by Android Git Automerger
2 changed files with 5 additions and 6 deletions

View File

@@ -1195,7 +1195,6 @@ public class NotificationManagerService extends SystemService {
getContext().registerReceiver(mIntentReceiver, sdFilter);
mSettingsObserver = new SettingsObserver(mHandler);
mSettingsObserver.observe();
// spin up NotificationScorers
String[] notificationScorerNames = resources.getStringArray(
@@ -1250,8 +1249,10 @@ public class NotificationManagerService extends SystemService {
// Grab our optional AudioService
mAudioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE);
// make sure our listener services are properly bound
rebindListenerServices();
} else if (phase == SystemService.PHASE_THIRD_PARTY_APPS_CAN_START) {
// This observer will force an update when observe is called, causing us to
// bind to listener services.
mSettingsObserver.observe();
}
}

View File

@@ -233,9 +233,7 @@ public class UserManagerService extends IUserManager.Stub {
}
void systemReady() {
final Context context = ActivityThread.systemMain().getSystemContext();
mUserPackageMonitor.register(context,
null, UserHandle.ALL, false);
mUserPackageMonitor.register(mContext, null, UserHandle.ALL, false);
userForeground(UserHandle.USER_OWNER);
}