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

Commit a1b5fbc8 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-dev

parents 501a4cea 512fcfc7
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;
    }