commit | 4a7c8d7125b7a703e0d0577958996988fcd6c052 | [log] [tgz] |
---|---|---|
author | jackqdyulei <jackqdyulei@google.com> | Fri May 19 13:29:09 2017 -0700 |
committer | jackqdyulei <jackqdyulei@google.com> | Tue May 23 16:21:33 2017 -0700 |
tree | 0ad1c30432968df5216b477db30d654a4fe70641 | |
parent | 37f6b7f751f9c085aa0ff8bbd7193a44af2fb580 [diff] |
Split loading process for battery header This cl creates BatteryHeaderPreferenceController, which will first load the battery level in ui thread(in displayPreference()), then display the remaining time once we get the battery stats. This is the best we can do to avoid ui flashing while removing the animation Bug: 38349587 Test: RunSettingsRoboTests Merged-In: Ic3622bb73562ba42e69b37e5674a724c03c45f12 Change-Id: Ic3622bb73562ba42e69b37e5674a724c03c45f12