Merge "Avoid warning log from InteractionJankMonitor in VolumeDialogImpl" into tm-dev am: d8dbe24c35 am: 27c254f15b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18401537 Change-Id: Id6674b3b852c54e147870fd13b5efa341618f9e3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1270,6 +1270,10 @@ public class VolumeDialogImpl implements VolumeDialog,
|
|||||||
return new Animator.AnimatorListener() {
|
return new Animator.AnimatorListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onAnimationStart(@NonNull Animator animation) {
|
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)
|
mInteractionJankMonitor.begin(Builder.withView(CUJ_VOLUME_CONTROL, v).setTag(type)
|
||||||
.setTimeout(timeout));
|
.setTimeout(timeout));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user