Skip to content

Commit 006f0e4

Browse files
author
Craig Mautner
committed
Override not drawing to screen when screen is off.
A new test had been added to performDraw to provide an early return if the screen was off. Drawing should have proceeded however if mReportNextDraw is set. Otherwise views that turn on the screen (such as the alarm) are not shown. Fixes bug 6168158. Change-Id: If9013d9dbd39d60ee1de8aeb3e0c1facbc5a7db5
1 parent 6d332c5 commit 006f0e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/java/android/view/ViewRootImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,9 @@ private void trackFPS() {
19191919
}
19201920

19211921
private void performDraw() {
1922-
if (!mAttachInfo.mScreenOn) return;
1922+
if (!mAttachInfo.mScreenOn && !mReportNextDraw) {
1923+
return;
1924+
}
19231925

19241926
final long drawStartTime;
19251927
if (ViewDebug.DEBUG_LATENCY) {

0 commit comments

Comments
 (0)