Merge "Merge "Avoid warning log from InteractionJankMonitor in VolumeDialogImpl" into tm-dev am: d8dbe24c35 am: 5c4b104608" into tm-d1-dev-plus-aosp

This commit is contained in:
Automerger Merge Worker
2022-05-18 21:52:57 +00:00
committed by Android (Google) Code Review

View File

@@ -1270,6 +1270,10 @@ public class VolumeDialogImpl implements VolumeDialog,
return new Animator.AnimatorListener() {
@Override
public void onAnimationStart(@NonNull Animator animation) {
if (!v.isAttachedToWindow()) {
if (D.BUG) Log.d(TAG, "onAnimationStart view do not attached to window:" + v);
return;
}
mInteractionJankMonitor.begin(Builder.withView(CUJ_VOLUME_CONTROL, v).setTag(type)
.setTimeout(timeout));
}