summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2018-10-16 01:05:16 +0800
committerRiddle Hsu <riddlehsu@google.com>2018-10-17 20:40:18 +0800
commitfd4a050079533145ac0535385a05b3d55e48b0aa (patch)
tree6b1ddb55573aa24f8e8a02c6f4bbbcc462d30608 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parenta1b9c31cbc1fa2b3f3f354aaa2cbbe65889a2a8a (diff)
Fix unused new stack when bring existing activity to front
If a non-top reusable activity is found when starting activity on secondary display, the condition in ActivityStarter.setTargetStackAndMoveToFrontIfNeeded will get launch stack by the reusable activity. But it actually creates a new stack with the target display which won't be used and seems as a leakage. That may also disturb focused stack checking when it is on the top of display (e.g. other tasks are moved to back). This change gives the preference to use the stack of candidate task if it already exists on target display. Then it will have the same behavior as default display that reuses the existing stack. Bug: 117799939 Test: atest ActivityStarterTests#testBringTaskToFrontOnSecondaryDisplay Change-Id: I65213386d9802f39ac7ba0d377a06711913c672d
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions