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

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

Demote top-app when notification shade is expanded

If the top app is busy, it may cause potential jank when expanding
notification shade because CPU contention.

If there is top app switch, the demote will be canceled. Because it
is usually an app launch which needs top priority for startup latency.

Bug: 362467878
Flag: com.android.window.flags.scheduling_for_notification_shade
Test: Expand/collapse notification shade and check
      adb shell dumpsys activity o | grep -e "A.*top-activity"
      Expanded: intermediate-top-activity
      Collapsed: top-activity

Change-Id: Ic82cb3235f93f01db382d355c98f7aef2f1ef783
parent 7ad12f9f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment