Skip to content

Commit

Permalink
Properly reset temp matrix for ScaleTypeDrawable
Browse files Browse the repository at this point in the history
Reviewed By: defHLT

Differential Revision: D58146604

fbshipit-source-id: bb754af771b3b4797fdd02d104861d57ad7b4b8c
  • Loading branch information
oprisnik authored and facebook-github-bot committed Jun 17, 2024
1 parent bf04c70 commit e4244b9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ void configureBounds() {

// We need to do the scaling ourselves, so have the underlying drawable use its preferred size.
underlyingDrawable.setBounds(0, 0, underlyingWidth, underlyingHeight);
mTempMatrix.reset();
mScaleType.getTransform(
mTempMatrix,
bounds,
Expand Down

0 comments on commit e4244b9

Please sign in to comment.