Skip to content

Commit 32d2d9c

Browse files
armdebugbgcngm
authored andcommitted
SPenActions: Use SimpleSummaryProvider for ListPreference
Setting the summary with string formatting (%s) is deprecated. Reference: https://developer.android.com/develop/ui/views/components/settings/customize-your-settings#summaries Change-Id: I70b186738814bdab486e3f1892f34a9ab3a48e46
1 parent d196640 commit 32d2d9c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/SPenActions/res/xml/spen_settings.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
SPDX-License-Identifier: Apache-2.0
55
-->
66
<PreferenceScreen
7-
xmlns:android="http://schemas.android.com/apk/res/android">
7+
xmlns:android="http://schemas.android.com/apk/res/android"
8+
xmlns:app="http://schemas.android.com/apk/res-auto">
89

910
<com.android.settingslib.widget.TopIntroPreference
1011
android:key="spen_bluetooth_top_intro"
@@ -22,6 +23,6 @@
2223
android:defaultValue="0"
2324
android:dependency="spen_bluetooth_enable"
2425
android:title="@string/spen_mode_title"
25-
android:summary="%s" />
26+
app:useSimpleSummaryProvider="true" />
2627

2728
</PreferenceScreen>

0 commit comments

Comments
 (0)