Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2cfcfbb authored by YUKAI HUNG's avatar YUKAI HUNG Committed by Android (Google) Code Review
Browse files

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

parents 6eb12c14 8c4f0975
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
    }