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

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

Only consider parent windowing mode if activity has no mode override

The freeform case could be
  task windowing mode=freeform
  activity requested windowing mode=undefined (inherit task)
Because isFloating returns false for undefined mode, it should ignore
the undefined case because the activity will inherit the mode from
task, then it should be considered as floating mode.

This is the follow-up of commit 79ea1505.

Bug: 151861875
Flag: com.android.window.flags.insets_decoupled_configuration
Test: adb shell am compat disable \
      INSETS_DECOUPLED_CONFIGURATION_ENFORCED test_app
      Launch test_app in freeform and resize it.
      The applySizeOverrideIfNeeded should not take effect.
Change-Id: I0153cbc5d53e1c05f41aa2423d271b0cded792b5
parent 8b1d33b5
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