auto import from //depot/cupcake/@137055
This commit is contained in:
@@ -973,11 +973,9 @@ class PowerManagerService extends IPowerManager.Stub implements LocalPowerManage
|
||||
if (mSpew) {
|
||||
Log.d(TAG, "mBroadcastWakeLock=" + mBroadcastWakeLock);
|
||||
}
|
||||
if (mContext != null) {
|
||||
if (ActivityManagerNative.isSystemReady()) {
|
||||
mContext.sendOrderedBroadcast(mScreenOnIntent, null,
|
||||
mScreenOnBroadcastDone, mHandler, 0, null, null);
|
||||
}
|
||||
if (mContext != null && ActivityManagerNative.isSystemReady()) {
|
||||
mContext.sendOrderedBroadcast(mScreenOnIntent, null,
|
||||
mScreenOnBroadcastDone, mHandler, 0, null, null);
|
||||
} else {
|
||||
synchronized (mLocks) {
|
||||
EventLog.writeEvent(LOG_POWER_SCREEN_BROADCAST_STOP, 2,
|
||||
@@ -996,7 +994,7 @@ class PowerManagerService extends IPowerManager.Stub implements LocalPowerManage
|
||||
// ignore it.
|
||||
}
|
||||
|
||||
if (mContext != null) {
|
||||
if (mContext != null && ActivityManagerNative.isSystemReady()) {
|
||||
mContext.sendOrderedBroadcast(mScreenOffIntent, null,
|
||||
mScreenOffBroadcastDone, mHandler, 0, null, null);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user