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

Commit 7b7a7d7e authored by Buga Dániel's avatar Buga Dániel
Browse files

A tiny optimalization

Change-Id: Ib2cb773ffe5cb579c2b46bd0e6a5a3f2c55d190d
parent 3032a18f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -491,7 +491,8 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit
    protected void screenScrolled(int screenCenter) {
        mScreenCenter = screenCenter;
        updatePageAlphaValues(screenCenter);
        for (int i = 0; i < getChildCount(); i++) {
        int count = getChildCount();
        for (int i = 0; i < count; i++) {
            KeyguardWidgetFrame v = getWidgetPageAt(i);
            if (v == mDragView) continue;
            if (v != null) {