Fix screen can not be switched issue
This is a screen can not be switched issue for Foldable Phone, When switched screen by cmd "adb shell cmd device_state state X" to change screen from state 0 to 1, The screen can not switch success from secondary screen to main screen, because after LogicalDisplayMapper sending swapped event, the main screen power_state will never changed.
We add update power mode when DMS received Swapped event, like this, DMS will update power mode ON to SF, and screen can be switched success.
Bug: 356561060
Test: Screen be switched success
Change-Id: I1fceb23c09215091f0d18c4c8bc0368edfbd24db
Signed-off-by: Jis G Jacob <studiokeys@blissroms.org>
1 file changed