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

Commit 95a08f9e authored by Brian Larsen's avatar Brian Larsen Committed by Sven Dawitz
Browse files

Issue 3418: Final solution for velocity

Thanks to chezbel from xda who finally found a proper solution
for both top and bottom status bar! It was so obvious, i would never
have come to this (:

Change-Id: Iff2bf6b69db3a9b905db25b41c984f8029fad68a
parent 381f5be0
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1039,14 +1039,14 @@ public class StatusBarService extends Service implements CommandQueue.Callbacks
                // us to retract.  Animate back to the expanded position.
                mAnimAccel = 2000.0f;
                if (vel < 0) {
                    mAnimVel = 0;
                    mAnimVel *= -1;
                }
            }
            else {
                // We are expanded and are now going to animate away.
                mAnimAccel = -2000.0f;
                if (vel > 0) {
                    mAnimVel = 0;
                    mAnimVel *= -1;
                }
            }
        } else {
@@ -1057,7 +1057,7 @@ public class StatusBarService extends Service implements CommandQueue.Callbacks
                // expand.  Animate in the notifications.
                mAnimAccel = 2000.0f;
                if (vel < 0) {
                    mAnimVel = 0;
                    mAnimVel *= -1;
                }
            }
            else {
@@ -1065,7 +1065,7 @@ public class StatusBarService extends Service implements CommandQueue.Callbacks
                // us to retract.  Animate back to the collapsed position.
                mAnimAccel = -2000.0f;
                if (vel > 0) {
                    mAnimVel = 0;
                    mAnimVel *= -1;
                }
            }
        }