diff --git a/example/build.gradle.kts b/example/build.gradle.kts index 094e5492..ae988282 100644 --- a/example/build.gradle.kts +++ b/example/build.gradle.kts @@ -3,7 +3,7 @@ plugins { } android { - compileSdk = 33 + compileSdk = 34 defaultConfig { applicationId = "com.ncorti.slidetoact.example" minSdk = 14 diff --git a/slidetoact/build.gradle.kts b/slidetoact/build.gradle.kts index 92ef12d2..bf2e18ce 100644 --- a/slidetoact/build.gradle.kts +++ b/slidetoact/build.gradle.kts @@ -10,7 +10,7 @@ version = "0.12.0".plus(if (hasProperty("USE_SNAPSHOT")) "-SNAPSHOT" else "") group = "com.ncorti" android { - compileSdk = 33 + compileSdk = 34 namespace = "com.ncorti.slidetoact" defaultConfig { diff --git a/slidetoact/src/main/java/com/ncorti/slidetoact/SlideToActView.kt b/slidetoact/src/main/java/com/ncorti/slidetoact/SlideToActView.kt index 98fa17a6..450b947e 100644 --- a/slidetoact/src/main/java/com/ncorti/slidetoact/SlideToActView.kt +++ b/slidetoact/src/main/java/com/ncorti/slidetoact/SlideToActView.kt @@ -522,9 +522,8 @@ class SlideToActView @JvmOverloads constructor( setCompletedNotAnimated(mIsCompleted) } - override fun onDraw(canvas: Canvas?) { + override fun onDraw(canvas: Canvas) { super.onDraw(canvas) - if (canvas == null) return // Outer area mOuterRect.set(