mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fixed black screen issue
This commit is contained in:
parent
2acae76c5e
commit
b00aea18db
3 changed files with 5 additions and 5 deletions
|
@ -31,8 +31,8 @@ android {
|
||||||
applicationId "com.lagradost.cloudstream3"
|
applicationId "com.lagradost.cloudstream3"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 24
|
versionCode 25
|
||||||
versionName "1.9.8"
|
versionName "1.9.9"
|
||||||
|
|
||||||
resValue "string", "app_version",
|
resValue "string", "app_version",
|
||||||
"${defaultConfig.versionName}${versionNameSuffix ?: ""}"
|
"${defaultConfig.versionName}${versionNameSuffix ?: ""}"
|
||||||
|
|
|
@ -475,7 +475,7 @@ class PlayerFragment : Fragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setBrightness(context: Context?, alpha: Float) {
|
private fun setBrightness(context: Context?, alpha: Float) {
|
||||||
val realAlpha = minOf(1f, maxOf(alpha, 0.005f)) // clamp
|
val realAlpha = minOf(1f - 0.05f, maxOf(alpha, 0f)) // clamp
|
||||||
if (useSystemBrightness) {
|
if (useSystemBrightness) {
|
||||||
if (useTrueSystemBrightness) {
|
if (useTrueSystemBrightness) {
|
||||||
Settings.System.putInt(
|
Settings.System.putInt(
|
||||||
|
@ -1021,7 +1021,7 @@ class PlayerFragment : Fragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (swipeVerticalEnabled)
|
if (swipeVerticalEnabled)
|
||||||
setBrightness(context, context?.getKey(VIDEO_PLAYER_BRIGHTNESS) ?: 1f)
|
setBrightness(context, context?.getKey(VIDEO_PLAYER_BRIGHTNESS) ?: 0f)
|
||||||
|
|
||||||
navigationBarHeight = requireContext().getNavigationBarHeight()
|
navigationBarHeight = requireContext().getNavigationBarHeight()
|
||||||
statusBarHeight = requireContext().getStatusBarHeight()
|
statusBarHeight = requireContext().getStatusBarHeight()
|
||||||
|
|
|
@ -9,7 +9,7 @@ import com.fasterxml.jackson.module.kotlin.KotlinModule
|
||||||
const val DOWNLOAD_HEADER_CACHE = "download_header_cache"
|
const val DOWNLOAD_HEADER_CACHE = "download_header_cache"
|
||||||
//const val WATCH_HEADER_CACHE = "watch_header_cache"
|
//const val WATCH_HEADER_CACHE = "watch_header_cache"
|
||||||
const val DOWNLOAD_EPISODE_CACHE = "download_episode_cache"
|
const val DOWNLOAD_EPISODE_CACHE = "download_episode_cache"
|
||||||
const val VIDEO_PLAYER_BRIGHTNESS = "video_player_alpha"
|
const val VIDEO_PLAYER_BRIGHTNESS = "video_player_alpha_key"
|
||||||
const val HOMEPAGE_API = "home_api_used"
|
const val HOMEPAGE_API = "home_api_used"
|
||||||
const val SEARCH_PROVIDER_TOGGLE = "settings_providers_toggle"
|
const val SEARCH_PROVIDER_TOGGLE = "settings_providers_toggle"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue