Skip to content

Commit 30b7c5a

Browse files
committed
fix: reset size on drawable change to ensure proper recycling
1 parent f182a16 commit 30b7c5a

File tree

1 file changed

+1
-0
lines changed
  • virtualjoystick/src/main/java/com/yoimerdr/android/virtualjoystick/api/drawable

1 file changed

+1
-0
lines changed

virtualjoystick/src/main/java/com/yoimerdr/android/virtualjoystick/api/drawable/DrawableBitCache.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class DrawableBitCache @JvmOverloads constructor(
3535
set(value) {
3636
if (field != value) {
3737
field = value
38+
size = null
3839
recycle()
3940
}
4041
}

0 commit comments

Comments
 (0)