[Material Next] Move “main switch” right below illustration
Bug: 187688296 Test: Manual testing Change-Id: Ic36b6deaad410fce49dcc19861a11307fb479f55
This commit is contained in:
@@ -21,12 +21,6 @@
|
|||||||
android:persistent="false"
|
android:persistent="false"
|
||||||
android:title="@string/accessibility_captioning_title">
|
android:title="@string/accessibility_captioning_title">
|
||||||
|
|
||||||
<com.android.settings.widget.SettingsMainSwitchPreference
|
|
||||||
android:key="captioning_preference_switch"
|
|
||||||
android:persistent="false"
|
|
||||||
android:summary="@string/accessibility_caption_primary_switch_summary"
|
|
||||||
android:title="@string/accessibility_caption_primary_switch_title" />
|
|
||||||
|
|
||||||
<com.android.settingslib.widget.LayoutPreference
|
<com.android.settingslib.widget.LayoutPreference
|
||||||
android:key="captions_preview"
|
android:key="captions_preview"
|
||||||
android:layout="@layout/accessibility_captions_preview"
|
android:layout="@layout/accessibility_captions_preview"
|
||||||
@@ -35,6 +29,12 @@
|
|||||||
android:title="@string/summary_placeholder"
|
android:title="@string/summary_placeholder"
|
||||||
settings:searchable="false" />
|
settings:searchable="false" />
|
||||||
|
|
||||||
|
<com.android.settings.widget.SettingsMainSwitchPreference
|
||||||
|
android:key="captioning_preference_switch"
|
||||||
|
android:persistent="false"
|
||||||
|
android:summary="@string/accessibility_caption_primary_switch_summary"
|
||||||
|
android:title="@string/accessibility_caption_primary_switch_title" />
|
||||||
|
|
||||||
<Preference
|
<Preference
|
||||||
android:fragment="com.android.settings.accessibility.CaptionAppearanceFragment"
|
android:fragment="com.android.settings.accessibility.CaptionAppearanceFragment"
|
||||||
android:key="captioning_caption_appearance"
|
android:key="captioning_caption_appearance"
|
||||||
|
@@ -103,8 +103,8 @@ public final class ToggleDaltonizerPreferenceFragment extends ToggleFeaturePrefe
|
|||||||
/** Customizes the order by preference key. */
|
/** Customizes the order by preference key. */
|
||||||
protected List<String> getPreferenceOrderList() {
|
protected List<String> getPreferenceOrderList() {
|
||||||
final List<String> lists = new ArrayList<>();
|
final List<String> lists = new ArrayList<>();
|
||||||
lists.add(KEY_USE_SERVICE_PREFERENCE);
|
|
||||||
lists.add(KEY_PREVIEW);
|
lists.add(KEY_PREVIEW);
|
||||||
|
lists.add(KEY_USE_SERVICE_PREFERENCE);
|
||||||
lists.add(KEY_CATEGORY_MODE);
|
lists.add(KEY_CATEGORY_MODE);
|
||||||
lists.add(KEY_GENERAL_CATEGORY);
|
lists.add(KEY_GENERAL_CATEGORY);
|
||||||
lists.add(KEY_HTML_DESCRIPTION_PREFERENCE);
|
lists.add(KEY_HTML_DESCRIPTION_PREFERENCE);
|
||||||
|
@@ -379,8 +379,8 @@ public abstract class ToggleFeaturePreferenceFragment extends SettingsPreference
|
|||||||
/** Customizes the order by preference key. */
|
/** Customizes the order by preference key. */
|
||||||
protected List<String> getPreferenceOrderList() {
|
protected List<String> getPreferenceOrderList() {
|
||||||
final List<String> lists = new ArrayList<>();
|
final List<String> lists = new ArrayList<>();
|
||||||
lists.add(KEY_USE_SERVICE_PREFERENCE);
|
|
||||||
lists.add(KEY_ANIMATED_IMAGE);
|
lists.add(KEY_ANIMATED_IMAGE);
|
||||||
|
lists.add(KEY_USE_SERVICE_PREFERENCE);
|
||||||
lists.add(KEY_GENERAL_CATEGORY);
|
lists.add(KEY_GENERAL_CATEGORY);
|
||||||
lists.add(KEY_HTML_DESCRIPTION_PREFERENCE);
|
lists.add(KEY_HTML_DESCRIPTION_PREFERENCE);
|
||||||
return lists;
|
return lists;
|
||||||
|
Reference in New Issue
Block a user