commit | 4fbd2064d6e835cf8e145c08d5692b67376ddbcb | [log] [tgz] |
---|---|---|
author | Zaiyue Xue <xuezaiyue@google.com> | Tue Oct 25 15:23:37 2022 +0800 |
committer | Zaiyue Xue <xuezaiyue@google.com> | Wed Oct 26 17:31:17 2022 +0800 |
tree | ec7f2f546afbff95aeed280397a4e83453eb85b7 | |
parent | 88d876318c47931289dcc67764705c4069555346 [diff] |
Fix b/248686898: Battery Usage list renders items on top of each other after swiping back from an app Root cause: When adding an animation to the hourly chartview which is scolled up out of the page, onBindViewHolder() will be trigered, then UI is refreshed again, and then the animation is added to the hourly charview again. This is a dead loop. This fix adds animation to the hourly chartview only if the visibility is changed. http://cs/android/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/BatteryChartPreferenceController.java;l=676;rcl=9f24ea815d637a05e1b7ddf2d4372d716d749229 http://cs/android/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/BatteryHistoryPreference.java;l=102;rcl=9f24ea815d637a05e1b7ddf2d4372d716d749229 Bug: 248686898 Fix: 248686898 Test: manually Change-Id: I93d4d089f537515d452c1330f5d75a6726b229f8 (cherry picked from commit aabea1689896adf3799a7eeffe11795dee3bd25c) Merged-In: I93d4d089f537515d452c1330f5d75a6726b229f8