mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-12 21:30:30 +05:30
refactor(fix): fix black screen and delay when unsetting fullscreen (#5367)
This commit is contained in:
parent
ebdd12d16f
commit
1e67660879
@ -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 {
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user