mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +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")
|
jniLibs.excludes.add("lib/armeabi-v7a/*_neon.so")
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace = "com.github.libretube"
|
|
||||||
|
|
||||||
tasks.register("testClasses")
|
tasks.register("testClasses")
|
||||||
|
|
||||||
lint {
|
lint {
|
||||||
abortOnError = false
|
abortOnError = false
|
||||||
checkReleaseBuilds = false
|
checkReleaseBuilds = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buildFeatures {
|
||||||
|
buildConfig = true
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace = "com.github.libretube"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -114,7 +114,6 @@ import com.github.libretube.util.TextUtils
|
|||||||
import com.github.libretube.util.TextUtils.toTimeInSeconds
|
import com.github.libretube.util.TextUtils.toTimeInSeconds
|
||||||
import com.github.libretube.util.YoutubeHlsPlaylistParser
|
import com.github.libretube.util.YoutubeHlsPlaylistParser
|
||||||
import com.github.libretube.util.deArrow
|
import com.github.libretube.util.deArrow
|
||||||
import com.google.android.material.elevation.SurfaceColors
|
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import java.util.concurrent.Executors
|
import java.util.concurrent.Executors
|
||||||
@ -201,8 +200,8 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
|
|
||||||
private val fullscreenDialog by lazy {
|
private val fullscreenDialog by lazy {
|
||||||
object : Dialog(requireContext(), android.R.style.Theme_Black_NoTitleBar_Fullscreen) {
|
object : Dialog(requireContext(), android.R.style.Theme_Black_NoTitleBar_Fullscreen) {
|
||||||
|
@Deprecated("Deprecated in Java", ReplaceWith("onbackpressedispatcher and callback"))
|
||||||
override fun onBackPressed() {
|
override fun onBackPressed() {
|
||||||
super.onBackPressed()
|
|
||||||
unsetFullscreen()
|
unsetFullscreen()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,5 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
|||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
android.enableJetifier=true
|
android.enableJetifier=true
|
||||||
android.defaults.buildfeatures.buildconfig=true
|
|
||||||
android.nonTransitiveRClass=true
|
android.nonTransitiveRClass=true
|
||||||
android.nonFinalResIds=true
|
android.nonFinalResIds=true
|
Loading…
Reference in New Issue
Block a user