From 3a14720a675f4d95cc88e3d41a8cba855f4b96ad Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Tue, 21 Nov 2023 22:16:48 +0000 Subject: [PATCH] Compile SDK to 34 --- example/build.gradle.kts | 2 +- slidetoact/build.gradle.kts | 2 +- .../src/main/java/com/ncorti/slidetoact/SlideToActView.kt | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) 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(