Chun-Ku Lin a1fe1ef36e Change the settings value and wait for it to propagate.
**Root cause**
Two reasons of the flaky test:
- Settings value not reset to default after tests
- Need time for the settings value changes to propagate to its listeners

Other clean up: When creating a preference, by default it will store
values in the shared preferences. If we don't intent to save the
preference to the sharedPreferences, we should set presistent as false.

Bug: 279818352
Test: atest
SettingsUnitTests:com.android.settings.accessibility.DisableAnimationsPreferenceControllerTest#onStart_disabledAnimation_shouldReturnTrue
--iterations 50

Change-Id: Ie645f8e847fc8ce188a7e5ed45bf5050f81e1d9a
2023-05-15 19:45:24 +00:00
2022-04-14 09:55:36 +00:00
2019-04-04 12:49:15 -07:00
2020-01-16 06:45:18 +00:00
2023-04-12 01:48:48 +00:00
2022-10-06 09:10:38 -07:00
Description
No description provided
3.1 GiB
Languages
Java 89.8%
Kotlin 10.2%