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

Commit befd54e3 authored by Jason Monk's avatar Jason Monk
Browse files

Vibrate when the gear gets up to speed

Bug: 25198361
Change-Id: I2a87c2b5594cef39b247de9ae524664c60e2a0ee
parent ab8f3c3a
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -19,16 +19,13 @@ import android.animation.Animator;
import android.animation.Animator.AnimatorListener;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.graphics.drawable.RippleDrawable;
import android.os.Handler;
import android.os.Message;
import android.util.AttributeSet;
import android.view.HapticFeedbackConstants;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;

import com.android.keyguard.AlphaOptimizedImageButton;

public class SettingsButton extends AlphaOptimizedImageButton {
@@ -157,6 +154,7 @@ public class SettingsButton extends AlphaOptimizedImageButton {

    protected void startContinuousSpin() {
        cancelAnimation();
        performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
        mUpToSpeed = true;
        mAnimator = ObjectAnimator.ofFloat(this, View.ROTATION, 0, 360);
        mAnimator.setInterpolator(AnimationUtils.loadInterpolator(mContext,