Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86535015 authored by Anton Potapov's avatar Anton Potapov
Browse files

Remove heading from ANC SliceView

Flag: aconfig new_volume_panel TEAMFOOD
Test: manual on the phone
Fixes: 326397059
Change-Id: Ifce17e1d0df98fb43b1383d038a6b9fa986c2663
parent 80b15219
Loading
Loading
Loading
Loading
+11 −9
Original line number Original line Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.systemui.volume.panel.component.anc.ui.composable
package com.android.systemui.volume.panel.component.anc.ui.composable


import android.content.Context
import android.content.Context
import android.view.ContextThemeWrapper
import android.view.View
import android.view.View
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.MaterialTheme
@@ -73,7 +74,8 @@ constructor(
        AndroidView<SliceView>(
        AndroidView<SliceView>(
            modifier = Modifier.fillMaxWidth(),
            modifier = Modifier.fillMaxWidth(),
            factory = { context: Context ->
            factory = { context: Context ->
                SliceView(context).apply {
                SliceView(ContextThemeWrapper(context, R.style.Widget_SliceView_VolumePanel))
                    .apply {
                        mode = SliceView.MODE_LARGE
                        mode = SliceView.MODE_LARGE
                        isScrollable = false
                        isScrollable = false
                        importantForAccessibility = View.IMPORTANT_FOR_ACCESSIBILITY_NO
                        importantForAccessibility = View.IMPORTANT_FOR_ACCESSIBILITY_NO
+4 −0
Original line number Original line Diff line number Diff line
@@ -965,6 +965,10 @@
        <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
        <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
    </style>
    </style>


    <style name="Widget.SliceView.VolumePanel">
        <item name="hideHeaderRow">true</item>
    </style>

    <style name="Theme.VolumePanelActivity.Popup" parent="@style/Theme.SystemUI.Dialog">
    <style name="Theme.VolumePanelActivity.Popup" parent="@style/Theme.SystemUI.Dialog">
        <item name="android:dialogCornerRadius">44dp</item>
        <item name="android:dialogCornerRadius">44dp</item>
        <item name="android:colorBackground">?androidprv:attr/materialColorSurfaceContainerHigh
        <item name="android:colorBackground">?androidprv:attr/materialColorSurfaceContainerHigh