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

Commit 57ba9783 authored by Anthony Tripaldi's avatar Anthony Tripaldi Committed by android-build-merger
Browse files

Merge "Remove dismiss action and associated event tag. Users expect the volume...

Merge "Remove dismiss action and associated event tag. Users expect the volume dialog to stay on screen after a press, like when interacting with the rest of the dialog." into qt-dev am: 4e75d8b4
am: c597de91

Change-Id: I0cf5f4f20805fb7d3772770572716c6d271a3603
parents d9c42510 c597de91
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -94,7 +94,6 @@ public class Events {
    public static final int DISMISS_STREAM_GONE = 7;
    public static final int DISMISS_REASON_OUTPUT_CHOOSER = 8;
    public static final int DISMISS_REASON_USB_OVERHEAD_ALARM_CHANGED = 9;
    public static final int DISMISS_REASON_ODI_CAPTIONS_CLICKED = 10;
    public static final String[] DISMISS_REASONS = {
            "unknown",
            "touch_outside",
@@ -105,8 +104,7 @@ public class Events {
            "done_clicked",
            "a11y_stream_changed",
            "output_chooser",
            "usb_temperature_below_threshold",
            "odi_captions_clicked"
            "usb_temperature_below_threshold"
    };

    public static final int SHOW_REASON_UNKNOWN = 0;
+0 −2
Original line number Diff line number Diff line
@@ -30,7 +30,6 @@ import static android.view.View.GONE;
import static android.view.View.VISIBLE;
import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;

import static com.android.systemui.volume.Events.DISMISS_REASON_ODI_CAPTIONS_CLICKED;
import static com.android.systemui.volume.Events.DISMISS_REASON_SETTINGS_CLICKED;

import android.animation.ObjectAnimator;
@@ -519,7 +518,6 @@ public class VolumeDialogImpl implements VolumeDialog,
            mODICaptionsIcon.setOnConfirmedTapListener(() -> {
                onCaptionIconClicked();
                Events.writeEvent(mContext, Events.EVENT_ODI_CAPTIONS_CLICK);
                dismissH(DISMISS_REASON_ODI_CAPTIONS_CLICKED);
            }, mHandler);
        }