commit | 106dc459e0e89132cd39125d281b1c3ef8b26267 | [log] [tgz] |
---|---|---|
author | jackqdyulei <jackqdyulei@google.com> | Thu Apr 13 11:44:42 2017 -0700 |
committer | jackqdyulei <jackqdyulei@google.com> | Tue Apr 25 13:26:17 2017 -0700 |
tree | 8bb335ebce8494215e72ddafb984319860892ef3 | |
parent | e5fa4cd4b5703e22450f3c7b31041a62c8c048b3 [diff] |
Move battery stats loading to AsyncLoader. It takes 3-4 seconds to load the battery settings page in Ryu. Main reason is that it takes too long to init BatteryStatsHelper. This cl moves loading code to AsyncLoader, and we will refresh ui once the loading part is finished. Following cl will add animation for the battery header to make it not so janky Bug: 37196170 Test: RunSettingsRoboTest Change-Id: I40dfdde4a072e28a56c8fdf0ec6d671b5109fc6d