Merge "Change EditShortcutsPreferenceFragment to use a Preference for subtitle/description" into main
This commit is contained in:
@@ -18,8 +18,12 @@
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="@string/accessibility_shortcut_description_pref">
|
||||
<Preference
|
||||
android:key="@string/accessibility_shortcut_description_pref"
|
||||
android:persistent="false"
|
||||
android:selectable="false"
|
||||
settings:allowDividerAbove="false"
|
||||
settings:allowDividerBelow="false"/>
|
||||
|
||||
<com.android.settings.accessibility.shortcuts.ShortcutOptionPreference
|
||||
android:key="@string/accessibility_shortcut_fab_pref"
|
||||
@@ -78,6 +82,4 @@
|
||||
settings:allowDividerAbove="false"
|
||||
settings:allowDividerBelow="false"
|
||||
settings:controller="com.android.settings.accessibility.shortcuts.TripleTapShortcutOptionController" />
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
@@ -207,9 +207,9 @@ public class EditShortcutsPreferenceFragment extends DashboardFragment {
|
||||
|
||||
activity.setTitle(titles.first);
|
||||
|
||||
String categoryKey = activity.getResources().getString(
|
||||
String screenDescriptionPrefKey = getString(
|
||||
R.string.accessibility_shortcut_description_pref);
|
||||
findPreference(categoryKey).setTitle(titles.second);
|
||||
findPreference(screenDescriptionPrefKey).setSummary(titles.second);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
||||
Reference in New Issue
Block a user