Merge "Fix issue #29069028 NYC: device boot failure: NPE in AppIdleController" into nyc-dev am: 3e05055af7
am: 6f2181f251
* commit '6f2181f251cd6377ef438f9d9c832caf2d251882':
Fix issue #29069028 NYC: device boot failure: NPE in AppIdleController
Change-Id: I18cfcd873ae2cdf7b844c6f785edf1eb180d2ec0
This commit is contained in:
@@ -717,6 +717,11 @@ public final class JobSchedulerService extends com.android.server.SystemService
|
||||
*/
|
||||
public JobSchedulerService(Context context) {
|
||||
super(context);
|
||||
mHandler = new JobHandler(context.getMainLooper());
|
||||
mConstants = new Constants(mHandler);
|
||||
mJobSchedulerStub = new JobSchedulerStub();
|
||||
mJobs = JobStore.initAndGet(this);
|
||||
|
||||
// Create the controllers.
|
||||
mControllers = new ArrayList<StateController>();
|
||||
mControllers.add(ConnectivityController.get(this));
|
||||
@@ -726,11 +731,6 @@ public final class JobSchedulerService extends com.android.server.SystemService
|
||||
mControllers.add(AppIdleController.get(this));
|
||||
mControllers.add(ContentObserverController.get(this));
|
||||
mControllers.add(DeviceIdleJobsController.get(this));
|
||||
|
||||
mHandler = new JobHandler(context.getMainLooper());
|
||||
mConstants = new Constants(mHandler);
|
||||
mJobSchedulerStub = new JobSchedulerStub();
|
||||
mJobs = JobStore.initAndGet(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user