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

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

Check config change for reporting resize and requesting redraw

Since multi-window mode is supported, the orientation change is
not the only source that requires redraw. It is confusing to use
"set orientation change" to handle other cases that also need to
redraw. So simplify the condition to check if there is a config
change of the window. While drag-resizing is similar, the end of
drag-resizing should also trigger a config change.

Also
- Reset mLastConfigReportedToClient only if the config is changed.
  This can avoid unnecessary redraw request if a window is reparented
  to another container with the same configuration.
- Set mWaitingForConfig for 180 rotation because since
  WindowConfiguration was introduced, there will be always a
  configuration change for rotation change.
- Add trace for global config change.

Bug: 159103089
Test: WindowStateTests

Change-Id: I50d4c5b741be960bd2850e4bcd0ab62ad32c19dc
parent a9233ab0
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