Skip to content
Snippets Groups Projects
Commit e3ea9b5d authored by Aashna Jena's avatar Aashna Jena Committed by Android (Google) Code Review
Browse files

Merge "Revert "Migrate MainSwitchBar to Material3"" into main

parents aeabb20b 772a0109
No related branches found
No related tags found
No related merge requests found
......@@ -47,12 +47,14 @@
android:textAppearance="?android:attr/textAppearanceListItem"
style="@style/MainSwitchText.Settingslib" />
<include
<Switch
android:id="@android:id/switch_widget"
layout="@layout/preference_widget_switch_compat"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical" />
android:layout_height="48dp"
android:layout_gravity="center_vertical"
android:focusable="false"
android:clickable="false"
android:theme="@style/Switch.SettingsLib"/>
</LinearLayout>
</LinearLayout>
......
......@@ -49,12 +49,14 @@
android:lineBreakWordStyle="phrase"
style="@style/MainSwitchText.Settingslib" />
<include
<Switch
android:id="@android:id/switch_widget"
layout="@layout/preference_widget_switch_compat"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical" />
android:layout_height="48dp"
android:layout_gravity="center_vertical"
android:focusable="false"
android:clickable="false"
android:theme="@style/Switch.SettingsLib"/>
</LinearLayout>
</LinearLayout>
......
......@@ -38,11 +38,13 @@
android:layout_marginStart="@dimen/settingslib_switchbar_subsettings_margin_start"
android:textAlignment="viewStart"/>
<include
<Switch
android:id="@android:id/switch_widget"
layout="@layout/preference_widget_switch_compat"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical" />
android:layout_gravity="center_vertical"
android:focusable="false"
android:clickable="false"
android:theme="@style/SwitchBar.Switch.Settingslib"/>
</LinearLayout>
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