refactor(fix): fix black screen and delay when unsetting fullscreen (#5367)

This commit is contained in:
IndusAryan 2023-12-21 21:04:08 +05:30 committed by GitHub
parent ebdd12d16f
commit 1e67660879
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View File

@ -68,14 +68,18 @@ android {
jniLibs.excludes.add("lib/armeabi-v7a/*_neon.so")
}
namespace = "com.github.libretube"
tasks.register("testClasses")
lint {
abortOnError = false
checkReleaseBuilds = false
}
buildFeatures {
buildConfig = true
}
namespace = "com.github.libretube"
}
dependencies {

View File

@ -114,7 +114,6 @@ import com.github.libretube.util.TextUtils
import com.github.libretube.util.TextUtils.toTimeInSeconds
import com.github.libretube.util.YoutubeHlsPlaylistParser
import com.github.libretube.util.deArrow
import com.google.android.material.elevation.SurfaceColors
import java.io.IOException
import java.util.*
import java.util.concurrent.Executors
@ -201,8 +200,8 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
private val fullscreenDialog by lazy {
object : Dialog(requireContext(), android.R.style.Theme_Black_NoTitleBar_Fullscreen) {
@Deprecated("Deprecated in Java", ReplaceWith("onbackpressedispatcher and callback"))
override fun onBackPressed() {
super.onBackPressed()
unsetFullscreen()
}
}

View File

@ -15,6 +15,5 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
kotlin.code.style=official
android.useAndroidX=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=true
android.nonFinalResIds=true