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

Commit 4da41e2b authored by YUKAI HUNG's avatar YUKAI HUNG Committed by Automerger Merge Worker
Browse files

Merge "Enhance battery usage refresh content log for performance testing" into...

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15310722

Change-Id: If8b08c3013c39cea8a2e5dfda51731bcb6b88f45
parents 6bb5b5f0 f2cfcfbb
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;
    }