summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2017-08-01 17:24:59 -0700
committerchaviw <chaviw@google.com>2017-08-04 10:52:19 -0700
commitd3bf08da95037042813a29941de07854f6f82bea (patch)
treeccae6df1464fbc6ce7cc03b89a605718bd4ae88b /tools/aapt2/java/JavaClassGenerator.cpp
parent6583c37a1b45d28a05a6e925af9a33a29759c7f8 (diff)
Only allow one turnScreenOn per app resume.
The current behavior will turn the screen on if a relayout is called. This is problematic because if the screen is off but the client is still requesting relayouts, the relayout will trigger a request to turn the screen on. This change ensures that the screen will only get turned on at most once per resume. If the activity is relaunched again, the screen can be turned on again. Fixes: 64139966 Test: go/wm-smoke Test: Added cts test ActivityManagerActivityVisibilityTests#testTurnScreenOnActivity_WithRelayout Test: Set the phone to have always on ambient display. Launched the dialer app and turned the screen off. The screen no longer turns back on automatically. Change-Id: I5f6ac5451683d4488e72e3a6377cb3a6fd6504b2
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions