Chaohui Wang 8397287f87 Fix flicker for Data Usage page
Both "Mobile data usage" & "Non-carrier data usage".

By,
1. Use summary placeholder for usage amount to avoid shift
2. Before fix CycleListener's onItemSelected() is called multiple times,
   cause the app list to flash, let DataUsageList to handle the dedup
   logic to better handling.
3. Before fix if return from App Usage page, no loading view is
   displayed (only first enter has it), move this to onResume() to fix.
4. Before fix the cycles passed to App Usage page is cached (even when
   the cycles are changed), clear the cache when onResume() to fix.
5. Listener in SpinnerPreference could be null, add safety guard to it.

Cherry-pick from Change-Id: I95e544c46333496f4f30ed77dafa4779b4d66019

Fix: 277162513
Test: manual visual test
Test: Unit test
Change-Id: I50fb79aa3c888651a79fd1d030da554bebb6a660
2023-04-22 08:47:22 +08:00
2022-04-14 09:55:36 +00:00
2023-04-22 08:47:22 +08:00
2023-04-22 08:47:22 +08: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
2022-10-13 17:21:08 +08:00
Description
No description provided
3.1 GiB
Languages
Java 89.8%
Kotlin 10.2%