From e21b4fb071d26a066e1ac9c36babc6e9adbae814 Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Mon, 22 May 2023 07:04:09 +0530 Subject: [PATCH] Remove unnecessary line in PIP method. --- .../java/com/github/libretube/compat/PictureInPictureCompat.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/java/com/github/libretube/compat/PictureInPictureCompat.kt b/app/src/main/java/com/github/libretube/compat/PictureInPictureCompat.kt index 2fd1463d3..10f2d6f7e 100644 --- a/app/src/main/java/com/github/libretube/compat/PictureInPictureCompat.kt +++ b/app/src/main/java/com/github/libretube/compat/PictureInPictureCompat.kt @@ -4,7 +4,6 @@ import android.app.Activity import android.content.Context import android.content.pm.PackageManager import android.os.Build -import android.util.Log object PictureInPictureCompat { fun isPictureInPictureAvailable(context: Context): Boolean { @@ -18,7 +17,6 @@ object PictureInPictureCompat { fun setPictureInPictureParams(activity: Activity, params: PictureInPictureParamsCompat) { if (isPictureInPictureAvailable(activity)) { - if (params.toPictureInPictureParams().actions.isEmpty()) throw IllegalArgumentException() activity.setPictureInPictureParams(params.toPictureInPictureParams()) } }