Skip to content
Commit ed201d88 authored by Nate Graham's avatar Nate Graham
Browse files

Use correct tablet mode function to determine mobile-ness

isTabletModeAvailable() only tells us if the device is *capable* of
entering tablet mode, not whether it's currently in that mode. This will
return true for convertible laptops and cause them to get the wrong
default settings.

What we want to do is query isTabletMode() to see if the device is
currently in tablet mode right now. It's still not perfect because
theoretically a convertible laptop could be in tablet mode during the
initial system setup (when default profiles are generated), but this is
at least a rarer situation compared to the status quo, which generates
mobile-specific profiles 100% of the time for that type of hardware.
parent dfaeb17a
Pipeline #347531 passed with stage
in 2 minutes and 30 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment