Merge "Enhance battery usage refresh content log for performance testing" into sc-v2-dev

This commit is contained in:
YUKAI HUNG
2021-07-19 09:50:07 +00:00
committed by Android (Google) Code Review

View File

@@ -332,9 +332,12 @@ public class BatteryChartPreferenceController extends AbstractPreferenceControll
mTrapezoidIndex = trapezoidIndex;
mHandler.post(() -> {
final long start = System.currentTimeMillis();
removeAndCacheAllPrefs();
addAllPreferences();
refreshCategoryTitle();
Log.d(TAG, String.format("refreshUi is finished in %d/ms",
(System.currentTimeMillis() - start)));
});
return true;
}