File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
sdk-library/src/main/java/pers/pslilysm/sdk_library/util Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ dependencyResolutionManagement {
2727``` groovy
2828dependencies {
2929 // add sdk-ktx to your dependencies
30- implementation 'com.github.pslilysm:sdk-ktx:2.0.4 '
30+ implementation 'com.github.pslilysm:sdk-ktx:2.0.5 '
3131}
3232```
3333
Original file line number Diff line number Diff line change @@ -130,11 +130,9 @@ object ToastUtil {
130130 override fun run () {
131131 var toast = sToastTLS.get()
132132 toast?.cancel()
133- toast = Toast (AppHolder .get())
134- toast.duration = toastProp.duration
135- toast.setGravity(toastProp.gravity, toastProp.xOffset, toastProp.yOffset)
133+ toast = Toast .makeText(AppHolder .get(), toastProp.text, toastProp.duration)
134+ toast!! .setGravity(toastProp.gravity, toastProp.xOffset, toastProp.yOffset)
136135 toast.setMargin(toastProp.horizontalMargin, toast.verticalMargin)
137- toast.setText(toastProp.text)
138136 toast.show()
139137 sToastTLS.set(toast)
140138 }
You can’t perform that action at this time.
0 commit comments