Skip to content

Commit c60e138

Browse files
committed
Fix issue when disabling then re-enabling physics
1 parent 97dbc71 commit c60e138

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
org-jetbrains-kotlin-android = "1.9.10"
33
agp = "8.2.1"
4-
coroutines = "1.7.1"
4+
coroutines = "1.7.3"
55
retrofit = "2.9.0"
66

77
[libraries]
@@ -19,7 +19,7 @@ google-material = { group = "com.google.android.material", name = "material", ve
1919

2020
circle-image-view = { group = "de.hdodenhof", name = "circleimageview", version = "3.1.0" }
2121

22-
coil = { group = "io.coil-kt", name = "coil", version = "1.1.1" }
22+
coil = { group = "io.coil-kt", name = "coil", version = "2.5.0" }
2323

2424
retrofit = { group = "com.squareup.retrofit2", name = "retrofit", version.ref = "retrofit" }
2525
retrofit-moshi = { group = "com.squareup.retrofit2", name = "converter-moshi", version.ref = "retrofit" }

physicslayout/src/main/java/com/jawnnypoo/physicslayout/Physics.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ class Physics @JvmOverloads constructor(
9090
* Enable/disable physics on the view
9191
*/
9292
var isPhysicsEnabled = true
93+
set(value) {
94+
field = value
95+
viewGroup.invalidate()
96+
}
9397

9498
/**
9599
* Enable/disable fling for this View

0 commit comments

Comments
 (0)