Move load battery consumer icon and label into the background

move high latency icon and label loading into the background thread to
improve the performance and first frame response time, which is also the
pre-work for checking whether a item is tappable or not feature (will
work this on the next patch)

Bug: 188751551
Test: make SettingsgRoboTests
Change-Id: I4e5712e995fce055d2735135c28be60fb70e5796
This commit is contained in:
ykhung
2021-05-24 12:20:17 +08:00
parent 0327293c3c
commit 3ad391b0de
2 changed files with 55 additions and 17 deletions

View File

@@ -142,7 +142,7 @@ public class BatteryDiffEntry {
return false;
}
private void loadLabelAndIcon() {
void loadLabelAndIcon() {
if (mIsLoaded) {
return;
}