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

Commit 470ab8d2 authored by Josh Tsuji's avatar Josh Tsuji Committed by Automerger Merge Worker
Browse files

Merge "Null-check tooltip view to avoid race condition crash." into sc-dev am:...

Merge "Null-check tooltip view to avoid race condition crash." into sc-dev am: 262d5493 am: 72aaebcb

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15128610

Change-Id: I1db71feb4f98c423880d30c107cc43a7f8bd1564
parents 5e6849ca 72aaebcb
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1134,7 +1134,12 @@ public class VolumeDialogImpl implements VolumeDialog,
                    .alpha(0.f)
                    .setStartDelay(0)
                    .setDuration(mDialogHideAnimationDurationMs)
                    .withEndAction(() -> mODICaptionsTooltipView.setVisibility(INVISIBLE))
                    .withEndAction(() -> {
                        // It might have been nulled out by tryToRemoveCaptionsTooltip.
                        if (mODICaptionsTooltipView != null) {
                            mODICaptionsTooltipView.setVisibility(INVISIBLE);
                        }
                    })
                    .start();
        }
    }