Bump compileSdk to 34

This commit is contained in:
Isira Seneviratne 2023-10-31 16:31:16 -04:00 committed by Stypox
parent 00566ed4d4
commit f3b458c803
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
5 changed files with 12 additions and 10 deletions

View File

@ -12,7 +12,7 @@ plugins {
} }
android { android {
compileSdk 33 compileSdk 34
namespace 'org.schabi.newpipe' namespace 'org.schabi.newpipe'
defaultConfig { defaultConfig {

View File

@ -160,13 +160,12 @@ class MainPlayerGestureListener(
} }
override fun onScroll( override fun onScroll(
initialEvent: MotionEvent, initialEvent: MotionEvent?,
movingEvent: MotionEvent, movingEvent: MotionEvent,
distanceX: Float, distanceX: Float,
distanceY: Float distanceY: Float
): Boolean { ): Boolean {
if (initialEvent == null || !playerUi.isFullscreen) {
if (!playerUi.isFullscreen) {
return false return false
} }

View File

@ -167,7 +167,7 @@ class PopupPlayerGestureListener(
} }
override fun onFling( override fun onFling(
e1: MotionEvent, e1: MotionEvent?,
e2: MotionEvent, e2: MotionEvent,
velocityX: Float, velocityX: Float,
velocityY: Float velocityY: Float
@ -218,11 +218,14 @@ class PopupPlayerGestureListener(
} }
override fun onScroll( override fun onScroll(
initialEvent: MotionEvent, initialEvent: MotionEvent?,
movingEvent: MotionEvent, movingEvent: MotionEvent,
distanceX: Float, distanceX: Float,
distanceY: Float distanceY: Float
): Boolean { ): Boolean {
if (initialEvent == null) {
return false
}
if (isResizing) { if (isResizing) {
return super.onScroll(initialEvent, movingEvent, distanceX, distanceY) return super.onScroll(initialEvent, movingEvent, distanceX, distanceY)

View File

@ -364,7 +364,7 @@ public final class NotificationUtil {
final Bitmap thumbnail = player.getThumbnail(); final Bitmap thumbnail = player.getThumbnail();
if (thumbnail == null || !showThumbnail) { if (thumbnail == null || !showThumbnail) {
// since the builder is reused, make sure the thumbnail is unset if there is not one // since the builder is reused, make sure the thumbnail is unset if there is not one
builder.setLargeIcon(null); builder.setLargeIcon((Bitmap) null);
return; return;
} }

View File

@ -80,10 +80,10 @@ class CircleClipTapView(context: Context?, attrs: AttributeSet) : View(context,
updatePathShape() updatePathShape()
} }
override fun onDraw(canvas: Canvas?) { override fun onDraw(canvas: Canvas) {
super.onDraw(canvas) super.onDraw(canvas)
canvas?.clipPath(shapePath) canvas.clipPath(shapePath)
canvas?.drawPath(shapePath, backgroundPaint) canvas.drawPath(shapePath, backgroundPaint)
} }
} }