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

Commit f4462120 authored by Daniel Hillenbrand's avatar Daniel Hillenbrand Committed by Gerrit Code Review
Browse files

Merge "Notification Widgets : Fix vibration" into jellybean

parents 6099d941 e25d33ce
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -143,8 +143,14 @@ public abstract class PowerButton {
    private View.OnClickListener mClickListener = new View.OnClickListener() {
        public void onClick(View v) {
            if (mHapticFeedback && mClickPattern != null) {
                if (mClickPattern.length == 1) {
                    // One-shot vibration
                    mVibrator.vibrate(mClickPattern[0]);
                } else {
                    // Pattern vibration
                    mVibrator.vibrate(mClickPattern, -1);
                }
            }
            toggleState(v.getContext());
            update(v.getContext());