summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorwilsonshih <wilsonshih@google.com>2019-09-10 09:44:51 +0800
committerWei Sheng Shih <wilsonshih@google.com>2019-09-24 09:39:50 +0000
commit78e5542545acea33190fbe3b199a525a88faab90 (patch)
treec0d8adeae29cf8337c71469dace0c0a9a2b94221 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentc50ac5df2caddf4ba5f57b7e315c44684b9c50d5 (diff)
Check client hidden state before resetting draw state.
If there are more than activities switched to foreground very quickly, imagine like: A->B->A, in previous fix, if we found the resumed activity is hidden in server side, we will reset the drawing state. However, the resumed activity may be currently visible at client side, and since the previous transition may not have finished and we will clear the AppWindowToken in clearChangeLeash, this AppWindowToken may never receive onAnimationFinished callback, so the mClientHidden will stay in false. Since server side doesn't require client side to relayout, the allDraw state will remain in false, which will cause the second transition cannot start. Therefore, even when resumed activity idled, the stopping activity cannot be removed from processStoppingActivitiesLocked because isSelfAnimating remains true. Fix: 137898192 Bug: 127741025 Test: atest CtsWindowManagerDeviceTestCases:ActivityStarterTests Test: Manual testing that b/134561008 didn't reproduce. Change-Id: Ie76b33ec5f12591c3166612e69b49325d7276216
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions