From 7b34487079c869e1ff44879eba29215eed013475 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sun, 29 May 2022 18:07:38 +0200 Subject: [PATCH] fixes --- app/src/main/AndroidManifest.xml | 1 + app/src/main/java/com/github/libretube/PlayerFragment.kt | 4 ++-- app/src/main/java/com/github/libretube/RouterActivity.kt | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index bc653a666..7cc95d66a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -165,6 +165,7 @@ diff --git a/app/src/main/java/com/github/libretube/PlayerFragment.kt b/app/src/main/java/com/github/libretube/PlayerFragment.kt index ed97cc7b6..33ae6c962 100644 --- a/app/src/main/java/com/github/libretube/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/PlayerFragment.kt @@ -69,12 +69,12 @@ import com.google.android.exoplayer2.util.RepeatModeUtil import com.google.android.material.button.MaterialButton import com.google.android.material.dialog.MaterialAlertDialogBuilder import com.squareup.picasso.Picasso +import org.chromium.net.CronetEngine +import retrofit2.HttpException import java.io.IOException import java.net.URLEncoder import java.util.concurrent.Executors import kotlin.math.abs -import org.chromium.net.CronetEngine -import retrofit2.HttpException var isFullScreen = false diff --git a/app/src/main/java/com/github/libretube/RouterActivity.kt b/app/src/main/java/com/github/libretube/RouterActivity.kt index e26c17423..fbcc273eb 100644 --- a/app/src/main/java/com/github/libretube/RouterActivity.kt +++ b/app/src/main/java/com/github/libretube/RouterActivity.kt @@ -31,6 +31,7 @@ class RouterActivity : AppCompatActivity() { intent?.flags = Intent.FLAG_ACTIVITY_CLEAR_TASK intent?.data = Uri.parse(it) this.startActivity(intent) + this.finish() } } }