Merge "Null-check tooltip view to avoid race condition crash." into sc-dev am: 262d5493ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15128610 Change-Id: Ib590473372d22c19e073cf4d25438f8118eb1417
This commit is contained in:
@@ -1134,7 +1134,12 @@ public class VolumeDialogImpl implements VolumeDialog,
|
|||||||
.alpha(0.f)
|
.alpha(0.f)
|
||||||
.setStartDelay(0)
|
.setStartDelay(0)
|
||||||
.setDuration(mDialogHideAnimationDurationMs)
|
.setDuration(mDialogHideAnimationDurationMs)
|
||||||
.withEndAction(() -> mODICaptionsTooltipView.setVisibility(INVISIBLE))
|
.withEndAction(() -> {
|
||||||
|
// It might have been nulled out by tryToRemoveCaptionsTooltip.
|
||||||
|
if (mODICaptionsTooltipView != null) {
|
||||||
|
mODICaptionsTooltipView.setVisibility(INVISIBLE);
|
||||||
|
}
|
||||||
|
})
|
||||||
.start();
|
.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user