summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorAlexandre Elias <aelias@google.com>2021-02-15 00:39:19 -0800
committerAlexandre Elias <aelias@google.com>2021-02-17 23:12:19 +0000
commitae5517e9a4d49c5ff27fc9a96863d31d760fd85d (patch)
tree0bd782f21eea0226986735ca6843c31958b703c7 /rs/java/android/renderscript/ProgramStore.java
parent2cc00754088767add52de8092903f092c8383667 (diff)
Fix transition animation when going back twice
The logic in ag/5108931 was intended to suppress the next return animation if it would cross a task boundary, while preserving return animations in all other cases. However, it accidentally caused excessive suppressions in the case of repeated back button presses. The reason is that although the sending activity is indeed only topOfTask when moving forward cross-task, it's *always* topOfTask when pressing back, so the state of the sending activity doesn't contain sufficient information to feed this logic. This patch changes to suppress when the receiving activity is task root, which is a more direct and reliable signal. (By definition, the return transition from an activity will cross a task boundary if and only if it's the task root.) Fixes: 177780499 Test: New test in ag/13593522 Change-Id: Ia5751da6122dc1ddb557f45318712185fa0b3df9
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions