Skip to content
Commit 2b134a1d authored by Ming-Shin Lu's avatar Ming-Shin Lu
Browse files

Add DisplayContent#forceDesktopMode

As WMS#mForceDesktopModeOnExternalDisplays is a flag to force enable
desktop mode on public secondary display.

Since some code points didn't check if the display is public
& secondary display, it may cause some issues like Bubbles using
private virtual display but the content can show system decorations and
IME always failed to show, if user enabled force desktop mode config
from developer option.

Add DC#forceDesktopMode to make sure the check is proper and consistent.

Fix: 163333691
Test: manual as test steps:
1) Enable "Force Desktop Mode on External display" from Settings ->
   Developer option.
2) Launch Message or FB messenger with chat head bubbles
3) Taping EditText and check if soft-keyboard can show up correctly.
Test: atest DisplayContentTests#testForceDesktopMode

Merged-In: I6ec52b6b1642fd547ebc222ae1bf9a2958e5fb2d
Change-Id: I6ec52b6b1642fd547ebc222ae1bf9a2958e5fb2d
parent 74237cc1
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