[Android] Set compileSdkVersion to 33

Nicolas Pomepuy git at videolan.org
Wed Sep 21 13:28:48 UTC 2022


vlc-android | branch: 3.5.x | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Aug  4 08:39:48 2022 +0200| [5346a2c7379a6fdc04c87dc9f4bd4922f3de9e7f] | committer: Duncan McNamara

Set compileSdkVersion to 33

> https://code.videolan.org/videolan/vlc-android/commit/5346a2c7379a6fdc04c87dc9f4bd4922f3de9e7f
---

 .../src/org/videolan/vlc/gui/HeaderMediaListActivity.kt           | 4 ++--
 .../vlc-android/src/org/videolan/vlc/gui/video/PopupManager.kt    | 2 +-
 .../src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt  | 8 ++++----
 .../vlc-android/src/org/videolan/vlc/gui/view/FadableImageView.kt | 8 ++++----
 build.gradle                                                      | 2 +-
 5 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/HeaderMediaListActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/HeaderMediaListActivity.kt
index 71cacddba..09d934756 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/HeaderMediaListActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/HeaderMediaListActivity.kt
@@ -536,7 +536,7 @@ open class HeaderMediaListActivity : AudioPlayerContainerActivity(), IEventsHand
         return true
     }
 
-    override fun onMenuItemActionExpand(item: MenuItem?): Boolean {
+    override fun onMenuItemActionExpand(item: MenuItem): Boolean {
         binding.appbar.setExpanded(false, true)
         audioBrowserAdapter.stopReorder = true
         audioBrowserAdapter.notifyItemRangeChanged(0, audioBrowserAdapter.itemCount, UPDATE_REORDER)
@@ -544,7 +544,7 @@ open class HeaderMediaListActivity : AudioPlayerContainerActivity(), IEventsHand
         return true
     }
 
-    override fun onMenuItemActionCollapse(item: MenuItem?): Boolean {
+    override fun onMenuItemActionCollapse(item: MenuItem): Boolean {
         audioBrowserAdapter.stopReorder = false
         audioBrowserAdapter.notifyItemRangeChanged(0, audioBrowserAdapter.itemCount, UPDATE_REORDER)
         ((binding.appbar.layoutParams as CoordinatorLayout.LayoutParams).behavior as ExpandStateAppBarLayoutBehavior).scrollEnabled = true
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/PopupManager.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/PopupManager.kt
index 1b5b3a57a..c560e0ffd 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/PopupManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/PopupManager.kt
@@ -126,7 +126,7 @@ class PopupManager constructor(private val service: PlaybackService) : PlaybackS
         return false
     }
 
-    override fun onScroll(e1: MotionEvent?, e2: MotionEvent?, distanceX: Float, distanceY: Float): Boolean {
+    override fun onScroll(p0: MotionEvent, p1: MotionEvent, p2: Float, p3: Float): Boolean {
         return false
     }
 
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt
index 91b78803a..8b40ca910 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt
@@ -479,12 +479,12 @@ class VideoPlayerOverlayDelegate (private val player: VideoPlayerActivity) {
 
     private fun exitAnimate(views: Array<View?>, translationEnd: Float) = views.forEach { view ->
         view?.animate()?.alpha(0F)?.translationY(translationEnd)?.setDuration(150L)?.setListener(object : Animator.AnimatorListener {
-            override fun onAnimationEnd(animation: Animator?) {
+            override fun onAnimationEnd(animation: Animator) {
                 view.setInvisible()
             }
-            override fun onAnimationCancel(animation: Animator?) {}
-            override fun onAnimationRepeat(animation: Animator?) {}
-            override fun onAnimationStart(animation: Animator?) {}
+            override fun onAnimationCancel(animation: Animator) {}
+            override fun onAnimationRepeat(animation: Animator) {}
+            override fun onAnimationStart(animation: Animator) {}
         })
     }
 
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/view/FadableImageView.kt b/application/vlc-android/src/org/videolan/vlc/gui/view/FadableImageView.kt
index 55eed5266..9992f7347 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/view/FadableImageView.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/view/FadableImageView.kt
@@ -27,20 +27,20 @@ class FadableImageView : AppCompatImageView {
         alpha = 0f
         animationRunning?.set(true)
         animate().setListener(object : Animator.AnimatorListener {
-            override fun onAnimationRepeat(p0: Animator?) {
+            override fun onAnimationRepeat(p0: Animator) {
             }
 
-            override fun onAnimationEnd(p0: Animator?) {
+            override fun onAnimationEnd(p0: Animator) {
                 animationRunning?.set(false)
                 alpha = 1f
             }
 
-            override fun onAnimationCancel(p0: Animator?) {
+            override fun onAnimationCancel(p0: Animator) {
                 animationRunning?.set(false)
                 alpha = 1f
             }
 
-            override fun onAnimationStart(p0: Animator?) {
+            override fun onAnimationStart(p0: Animator) {
             }
         }).alpha(1f)
     }
diff --git a/build.gradle b/build.gradle
index b86f380c8..54ef68660 100644
--- a/build.gradle
+++ b/build.gradle
@@ -43,7 +43,7 @@ ext {
     medialibraryVersion = '0.13.4-eap1'
     minSdkVersion = 17
     targetSdkVersion = 30
-    compileSdkVersion = 31
+    compileSdkVersion = 33
     androidxLegacyVersion = '1.0.0'
     androidxCoreVersion = '1.7.0'
     appCompatVersion = '1.4.1'



More information about the Android mailing list