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

Commit af496d8b authored by Jason Monk's avatar Jason Monk Committed by Android (Google) Code Review
Browse files

Merge "Vibrate when the gear gets up to speed"

parents 0af35b44 befd54e3
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,