Migrate Remove Animations preference to Catalyst backend.

This preference (and its test) has no flagging, but its parent
page 'Color and motion' is flagged for Catalyst migration.

This preference looks identical before and after migration.

Fix: 373451690
Flag: com.android.settings.flags.catalyst_accessibility_color_and_motion
Test: atest RemoveAnimationsPreferenceTest
Test: Enable our flag, and top-level Catalyst flag;
      Toggle the setting in Settings > Accessibility;
      Observe expected changes to animation behavior;
Change-Id: I07dbe45a120780439393d7cfd46a749025b7ab0c
This commit is contained in:
Daniel Norman
2024-11-12 00:05:20 +00:00
parent 05b9d038de
commit 9ef696d0e8
5 changed files with 213 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ import com.android.settingslib.core.lifecycle.events.OnStop;
import java.util.Arrays;
import java.util.List;
// LINT.IfChange
/** A toggle preference controller for disable animations. */
public class DisableAnimationsPreferenceController extends TogglePreferenceController implements
LifecycleObserver, OnStart, OnStop {
@@ -123,3 +124,4 @@ public class DisableAnimationsPreferenceController extends TogglePreferenceContr
mContentResolver.unregisterContentObserver(mSettingsContentObserver);
}
}
// LINT.ThenChange(src/com/android/settings/accessibility/RemoveAnimationsPreference.kt)