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

Commit afc96fda authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

Changed task focused to be based on focused app vs. window

Task#isFocused and onWindowFocusChanged (renamed to onAppFocusChanged)
where based on the current focused window which is wrong since not all
windows are contained within a task. Changed to use DC#mFocusedApp
instead which tracks focus changes to app windows.

Also,
- Start calling dispatchTaskInfoChangedIfNeeded in
Task#onAppFocusChanged
- Removed DC#mLastFocus that isn't used.

Bug: 180525887
Test: Task focus doesn't change when notification shade is expanded.
Change-Id: I1abf97b5f8d7eedd36bd429835094f6a48361bee
parent 5df7e132
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