external displays: mirror/extend switch
Add a mirror/extend built-in display switch. Make minor changes to DisplayTopology.kt for consistency and correctness. Kotlin requires the two preference key names are different since they are in the same namespace, so fix the name in the existing DisplayTopology.kt module. Make DisplayTopologyPreference responsible, rather than the caller, for setting its persistence property, since a wrong value may cause unusual behavior. The setOrder calls are necessary to prevent the new switch from appearing below the Built-in display category when a display is hot-plugged in after showing the UI. We set them on all top-level preferences (not just the two we are fixing) for consistency. Flag: com.android.settings.flags.display_topology_pane_in_display_list Test: atest ExternalDisplayPreferenceFragmentTest.java Bug: b/352648432 Bug: b/366056921 Change-Id: Ib0072dd75066758903cc48c2d1e7142e1d921f67
This commit is contained in:
@@ -2120,6 +2120,8 @@
|
||||
<string name="external_display_more_options_title">More options</string>
|
||||
<!-- External Display settings. -->
|
||||
<string name="external_display_topology_hint">Hold and drag to rearrange displays.</string>
|
||||
<!-- External Display settings. -->
|
||||
<string name="external_display_mirroring_title">Mirror built-in display</string>
|
||||
|
||||
<!-- Wifi Display settings. The title of the screen. [CHAR LIMIT=40] -->
|
||||
<string name="wifi_display_settings_title">Cast</string>
|
||||
|
Reference in New Issue
Block a user