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

Commit 4fcbce15 authored by Evan Charlton's avatar Evan Charlton
Browse files

Enable haptic feedback on long-press of snooze button.

When dismissing alarm by long-press of the snooze button in dual-mode mode,
there should be haptic feedback.

Change-Id: If9351f203f4f0ddf9414e103490c7832e263e180
parent 02241acd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.HapticFeedbackConstants;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup;
@@ -144,6 +145,7 @@ public class AlarmAlertFullScreen extends Activity {
                        @Override
                        public boolean onLongClick(View v) {
                            dismiss(false);
                            v.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
                            return true;
                        }
                    });