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

Commit 1c144b0b authored by Keyan Mobli's avatar Keyan Mobli Committed by Gerrit Code Review
Browse files

Merge "Issue 3144: Make CmBatteryMiniIcon animation more stock-like" into gingerbread

parents c57b7b47 c77ade9e
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 {