Skip to content

Commit 72b26c1

Browse files
author
Jim Miller
committed
Fix 6397736: Fix issue with MultiWaveView in incoming call screen.
This fixes a bug where the incoming call screen sometimes had misplaced icons. The code previously relied on an additional layout pass that doesn't happen in the incoming call screen in some cases. Change-Id: If7c39994c1bdadbd3e97f4b9ebb45f68893fd9bd
1 parent 06e8d66 commit 72b26c1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/java/com/android/internal/widget/multiwaveview/MultiWaveView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,8 @@ private void internalSetTargetResources(int resourceId) {
538538
maxWidth = Math.max(maxWidth, target.getWidth());
539539
maxHeight = Math.max(maxHeight, target.getHeight());
540540
}
541+
mTargetResourceId = resourceId;
542+
mTargetDrawables = targetDrawables;
541543
if (mMaxTargetWidth != maxWidth || mMaxTargetHeight != maxHeight) {
542544
mMaxTargetWidth = maxWidth;
543545
mMaxTargetHeight = maxHeight;
@@ -546,8 +548,6 @@ private void internalSetTargetResources(int resourceId) {
546548
updateTargetPositions();
547549
}
548550
array.recycle();
549-
mTargetResourceId = resourceId;
550-
mTargetDrawables = targetDrawables;
551551
}
552552

553553
/**

0 commit comments

Comments
 (0)