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

Commit 8eb58c23 authored by Anthony Tripaldi's avatar Anthony Tripaldi
Browse files

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.

Bug:129977566
Test: manual
Change-Id: Ibafbfa91e54e375bb7f3ac17e85d2bb94a284e95
parent 38c298ac
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);
        }