Merge "Do not wake up all displays" into tm-dev
This commit is contained in:
@@ -523,8 +523,7 @@ final class VirtualDeviceImpl extends IVirtualDevice.Stub
|
|||||||
}
|
}
|
||||||
PowerManager powerManager = mContext.getSystemService(PowerManager.class);
|
PowerManager powerManager = mContext.getSystemService(PowerManager.class);
|
||||||
PowerManager.WakeLock wakeLock = powerManager.newWakeLock(
|
PowerManager.WakeLock wakeLock = powerManager.newWakeLock(
|
||||||
PowerManager.SCREEN_BRIGHT_WAKE_LOCK
|
PowerManager.SCREEN_BRIGHT_WAKE_LOCK,
|
||||||
| PowerManager.ACQUIRE_CAUSES_WAKEUP,
|
|
||||||
TAG + ":" + displayId, displayId);
|
TAG + ":" + displayId, displayId);
|
||||||
wakeLock.acquire();
|
wakeLock.acquire();
|
||||||
mPerDisplayWakelocks.put(displayId, wakeLock);
|
mPerDisplayWakelocks.put(displayId, wakeLock);
|
||||||
|
|||||||
Reference in New Issue
Block a user