Add "experimental" subtitle to color correction and inversion
BUG: 17112912 Change-Id: I84eaa94e755bfcfbdf014fae09d1b02ae5d2eb4a
This commit is contained in:
@@ -16,9 +16,8 @@
|
||||
|
||||
<TextView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/summary"
|
||||
android:id="@android:id/summary"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="?android:attr/textColorSecondary"
|
||||
android:textAppearance="@android:style/TextAppearance.Material.Body1"
|
||||
android:padding="16dip" />
|
||||
|
@@ -3570,8 +3570,12 @@
|
||||
<string name="accessibility_long_press_timeout_preference_title">Touch & hold delay</string>
|
||||
<!-- Title for the accessibility preference to configure display color inversion. [CHAR LIMIT=NONE] -->
|
||||
<string name="accessibility_display_inversion_preference_title">Color inversion</string>
|
||||
<!-- Subtitle for the accessibility preference to configure display color inversion. [CHAR LIMIT=NONE] -->
|
||||
<string name="accessibility_display_inversion_preference_subtitle">(Experimental) May affect performance</string>
|
||||
<!-- Title for the accessibility preference to configure display color space correction. [CHAR LIMIT=NONE] -->
|
||||
<string name="accessibility_display_daltonizer_preference_title">Color space correction</string>
|
||||
<string name="accessibility_display_daltonizer_preference_title">Color correction</string>
|
||||
<!-- Subtitle for the accessibility preference to configure display color space correction. [CHAR LIMIT=NONE] -->
|
||||
<string name="accessibility_display_daltonizer_preference_subtitle">This feature is experimental and may affect performance.</string>
|
||||
|
||||
<!-- Title for the preference to show a tile for a particular feature in the Quick Settings pane. [CHAR LIMIT=NONE] -->
|
||||
<string name="enable_quick_setting">Show in Quick Settings</string>
|
||||
|
@@ -17,6 +17,12 @@
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:title="@string/accessibility_display_daltonizer_preference_title" >
|
||||
|
||||
<Preference
|
||||
android:summary="@string/accessibility_display_daltonizer_preference_subtitle"
|
||||
android:layout="@layout/text_description_preference"
|
||||
android:persistent="false"
|
||||
android:selectable="false" />
|
||||
|
||||
<ListPreference
|
||||
android:entries="@array/daltonizer_type_entries"
|
||||
android:entryValues="@array/daltonizer_type_values"
|
||||
|
@@ -86,6 +86,7 @@
|
||||
<SwitchPreference
|
||||
android:key="toggle_inversion_preference"
|
||||
android:title="@string/accessibility_display_inversion_preference_title"
|
||||
android:summary="@string/accessibility_display_inversion_preference_subtitle"
|
||||
android:persistent="false" />
|
||||
<PreferenceScreen
|
||||
android:fragment="com.android.settings.accessibility.ToggleDaltonizerPreferenceFragment"
|
||||
|
@@ -58,7 +58,7 @@ public abstract class ToggleFeaturePreferenceFragment
|
||||
@Override
|
||||
protected void onBindView(View view) {
|
||||
super.onBindView(view);
|
||||
TextView summaryView = (TextView) view.findViewById(R.id.summary);
|
||||
final TextView summaryView = (TextView) view.findViewById(android.R.id.summary);
|
||||
summaryView.setText(getSummary());
|
||||
sendAccessibilityEvent(summaryView);
|
||||
}
|
||||
|
Reference in New Issue
Block a user