Loading src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java +2 −2 Original line number Diff line number Diff line Loading @@ -404,6 +404,7 @@ public abstract class ToggleFeaturePreferenceFragment extends BaseSupportFragmen preference.setSelectable(false); preference.setMaxHeight(displayHalfHeight); preference.setKey(KEY_ANIMATED_IMAGE); final CharSequence contentDescription = getContentDescriptionForAnimatedIllustration(); preference.setOnBindListener(view -> { // isAnimatable is decided in // {@link IllustrationPreference#onBindViewHolder(PreferenceViewHolder)}. Therefore, we Loading @@ -412,8 +413,7 @@ public abstract class ToggleFeaturePreferenceFragment extends BaseSupportFragmen // images are decorative. ThreadUtils.getUiThreadHandler().post(() -> { if (preference.isAnimatable()) { preference.setContentDescription( getContentDescriptionForAnimatedIllustration()); preference.setContentDescription(contentDescription); } }); }); Loading Loading
src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java +2 −2 Original line number Diff line number Diff line Loading @@ -404,6 +404,7 @@ public abstract class ToggleFeaturePreferenceFragment extends BaseSupportFragmen preference.setSelectable(false); preference.setMaxHeight(displayHalfHeight); preference.setKey(KEY_ANIMATED_IMAGE); final CharSequence contentDescription = getContentDescriptionForAnimatedIllustration(); preference.setOnBindListener(view -> { // isAnimatable is decided in // {@link IllustrationPreference#onBindViewHolder(PreferenceViewHolder)}. Therefore, we Loading @@ -412,8 +413,7 @@ public abstract class ToggleFeaturePreferenceFragment extends BaseSupportFragmen // images are decorative. ThreadUtils.getUiThreadHandler().post(() -> { if (preference.isAnimatable()) { preference.setContentDescription( getContentDescriptionForAnimatedIllustration()); preference.setContentDescription(contentDescription); } }); }); Loading