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

Commit dc350b95 authored by Alison Cichowlas's avatar Alison Cichowlas Committed by Automerger Merge Worker
Browse files

Merge "Change mODICaptionsTooltipView null check occasion to avoid potential crash" am: 1add3774

parents 9b4f3067 1add3774
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -1228,13 +1228,13 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
            rescheduleTimeoutH();
        }

        if (mODICaptionsTooltipView != null) {
            mODICaptionsTooltipView.setAlpha(0.0f);

        // We need to wait for layout and then center the caption view. Since the height of the
        // dialog is now dynamic (with the variable ringer drawer height changing the height of
        // the dialog), we need to do this here in code vs. in XML.
        mHandler.post(() -> {
            if (mODICaptionsTooltipView != null) {
                mODICaptionsTooltipView.setAlpha(0.0f);

                final int[] odiTooltipLocation = mODICaptionsTooltipView.getLocationOnScreen();
                final int[] odiButtonLocation = mODICaptionsIcon.getLocationOnScreen();

@@ -1260,8 +1260,8 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
                            }
                        })
                        .start();
            });
            }
        });
    }

    private void hideCaptionsTooltip() {