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

Commit 05206947 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-dev am: a1b5fbc8

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

Change-Id: I3c316a639b4029e49947be132d640aec46d8b605
parents f97a1948 a1b5fbc8
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -332,9 +332,12 @@ public class BatteryChartPreferenceController extends AbstractPreferenceControll


        mTrapezoidIndex = trapezoidIndex;
        mTrapezoidIndex = trapezoidIndex;
        mHandler.post(() -> {
        mHandler.post(() -> {
            final long start = System.currentTimeMillis();
            removeAndCacheAllPrefs();
            removeAndCacheAllPrefs();
            addAllPreferences();
            addAllPreferences();
            refreshCategoryTitle();
            refreshCategoryTitle();
            Log.d(TAG, String.format("refreshUi is finished in %d/ms",
                    (System.currentTimeMillis() - start)));
        });
        });
        return true;
        return true;
    }
    }