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

Commit c77ade9e authored by Sven Dawitz's avatar Sven Dawitz
Browse files

Issue 3144: Make CmBatteryMiniIcon animation more stock-like

Change-Id: I724e9dfadad07c6c5e03365b9e37de0f0495a161
parent 3aef9235
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -207,14 +207,14 @@ public class CmBatteryMiniIcon extends ImageView {
            if (mLastMillis == 0) {
                // just got plugged - setup animation
                mLastMillis = SystemClock.uptimeMillis();
                mCurrentFrame = 1;
                mCurrentFrame = mBatteryLevel / 10;
            }
            long now = SystemClock.uptimeMillis();

            while (now - mLastMillis > ANIM_FRAME_DURATION) {
                mCurrentFrame++;
                if (mCurrentFrame > 10)
                    mCurrentFrame = 1;
                    mCurrentFrame = mBatteryLevel / 10;
                mLastMillis += ANIM_FRAME_DURATION;
            }
        } else {