Files
app_Settings/res/layout/preset_dialog_singlechoice.xml
Angela Wang 051bc151eb Update the selected preset when dialog is shown
The selected preset in the dialog is not updated when preset is changed
from remote devices. Notify the adapter when the value is updated in
preset preference.

Flag: EXEMPT bugfix
Bug: 402672688
Test: atest BluetoothDetailsHearingAidsPresetsControllerTest
Test: atest PresetListPreferenceTest
Change-Id: Ib9df57985ef4764607f30f11b54a2bfb4a1ebb8c
2025-04-28 05:49:11 +00:00

40 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2025 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingStart="20dp"
android:gravity="center"
android:paddingEnd="?android:attr/dialogPreferredPadding"
android:minHeight="?android:attr/listPreferredItemHeightSmall">
<CheckedTextView
android:id="@+id/text1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorAlertDialogListItem"
android:hyphenationFrequency="normalFast"
android:lineBreakWordStyle="phrase"
android:gravity="center_vertical"
android:drawableStart="?android:attr/listChoiceIndicatorSingle"
android:drawablePadding="20dp"
android:ellipsize="marquee" />
</LinearLayout>