Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b70b36d8 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Check preferred display for matching existing activity

Fix two conditions:
- If the reused activity is in the top focused stack, it is unable
  to reparent to preferred display because top task is the same as
  reused task.
- If the reused activity is in preferred display, it is unnecessary
  to get launch stack that may produce a dangling stack.

Also make TestActivityDisplay support real multiple display.
Originally it gets display from DisplayManager which restricts
to use default display only.

Bug: b/115277654
Test: atest FrameworksServicesTests:ActivityStarterTests# \
      testDeliverIntentToTopActivityOfNonTopDisplay
Test: atest FrameworksServicesTests:ActivityStarterTests# \
      testReparentTopFocusedActivityToSecondaryDisplay

Change-Id: Id24c235a8a4ffab2917d46fc287413f9bf28c58d
parent 3bbff814
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment