Unified service and shortcut state summary on a11y settings page.
Bug: 210026562 Test: manual Test: atest Change-Id: I4d5ff6b10d6bfd2fe6b3de1849d00a9d084bf269
This commit is contained in:
@@ -16,9 +16,12 @@
|
||||
|
||||
package com.android.settings.accessibility;
|
||||
|
||||
import static com.android.internal.accessibility.AccessibilityShortcutController.DALTONIZER_COMPONENT_NAME;
|
||||
|
||||
import android.content.Context;
|
||||
import android.provider.Settings;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.core.BasePreferenceController;
|
||||
|
||||
/** Controller that shows and updates the color correction summary. */
|
||||
@@ -37,6 +40,10 @@ public class DaltonizerPreferenceController extends BasePreferenceController {
|
||||
|
||||
@Override
|
||||
public CharSequence getSummary() {
|
||||
return AccessibilityUtil.getSummary(mContext, DALTONIZER_ENABLED);
|
||||
return AccessibilityUtil.getFeatureFullStateSummary(
|
||||
mContext, DALTONIZER_COMPONENT_NAME,
|
||||
DALTONIZER_ENABLED,
|
||||
R.string.daltonizer_state_on, R.string.daltonizer_state_off,
|
||||
R.string.daltonizer_feature_summary);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user