summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2019-08-26 19:18:34 +0800
committerRiddle Hsu <riddlehsu@google.com>2019-09-03 17:08:57 +0800
commit1e7ba58e5b14146f70bc6b2cc26559ec7dcb615f (patch)
treea1ae4a2f74fab7e70116b8956cc676ad74350bfb /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent95f50d6ee978359f07dd7d1e9f2b347f8a173f9d (diff)
Fix focused stack adjustment when finishing top activity
Since commit f2835df035, a stack won't be visible if it doesn't contain running activity. So when checking if the stack order needs to be adjusted after the top activity is set as finishing, the adjustment will be skipped by invisible stack. It is resolved by checking before the activity becomes finishing. Also remove the activity focus adjustment in stopActivityLocked because the original condition should be never satisfied: only adjust for resumed activity in top focused stack. That doesn't seem to be the condition for an activity that can be stopped. So the adjustment logic becomes simpler to be inlined. Bug: 138519583 Test: atest ActivityRecordTests#testFinishActivityIfPossible_adjustStackOrder Change-Id: I0a0edc3f28acc4eb435dbbf2c71ab6119b155c39
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions