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

Commit a15e66b2 authored by Annie Chin's avatar Annie Chin Committed by Android Git Automerger
Browse files

am 4c86ebfa: Do not hint on alarm button click when in accessibility mode.

* commit '4c86ebfa':
  Do not hint on alarm button click when in accessibility mode.
parents b2e0d15f 4c86ebfa
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -389,8 +389,11 @@ public class AlarmActivity extends AppCompatActivity
                    if (snoozeFraction > 0.0f || dismissFraction > 0.0f) {
                        // Animate back to the initial state.
                        AnimatorUtils.reverse(mAlarmAnimator, mSnoozeAnimator, mDismissAnimator);
                    } else if (mAlarmButton.getTop() <= y && y <= mAlarmButton.getBottom()) {
                        // User touched the alarm button, hint the dismiss action.
                    } else if (mAlarmButton.getTop() <= y && y <= mAlarmButton.getBottom()
                            && mAccessibilityManager == null) {
                        // User touched the alarm button, hint the dismiss action unless in
                        // accessibility mode. In accessibility mode, the click on the dismiss
                        // button triggers dismiss().
                        mDismissButton.performClick();
                    }