Show topology pane detached from mirror toggle

Remove the extra blue border from the topology pane and give the toggle
below it its own rounded corners.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Test: screenshots
Test: verify display blocks are still clipped to the topology holder view
Bug: b/396116157
Change-Id: I3c0f826db24e5c599c6b51f71d099976fb04cbf0
This commit is contained in:
Matthew DeVore
2025-02-13 21:17:44 +00:00
parent b7d640ef36
commit e3dc23f767
3 changed files with 13 additions and 3 deletions

View File

@@ -16,9 +16,10 @@
package com.android.settings.connecteddevice.display
import android.app.WallpaperManager
import com.android.settings.R
import com.android.settingslib.widget.GroupSectionDividerMixin
import android.app.WallpaperManager
import android.content.Context
import android.graphics.Bitmap
import android.graphics.PointF
@@ -45,7 +46,7 @@ import kotlin.math.abs
* when there is one or more extended display attached.
*/
class DisplayTopologyPreference(context : Context)
: Preference(context), ViewTreeObserver.OnGlobalLayoutListener {
: Preference(context), ViewTreeObserver.OnGlobalLayoutListener, GroupSectionDividerMixin {
@VisibleForTesting lateinit var mPaneContent : FrameLayout
@VisibleForTesting lateinit var mPaneHolder : FrameLayout
@VisibleForTesting lateinit var mTopologyHint : TextView
@@ -82,6 +83,8 @@ class DisplayTopologyPreference(context : Context)
isPersistent = false
isCopyingEnabled = false
injector = Injector(context)
}