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
				
			
		|  | @ -475,7 +475,7 @@ class PlayerFragment : Fragment() { | |||
|     } | ||||
| 
 | ||||
|     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 (useTrueSystemBrightness) { | ||||
|                 Settings.System.putInt( | ||||
|  | @ -1021,7 +1021,7 @@ class PlayerFragment : Fragment() { | |||
|         } | ||||
| 
 | ||||
|         if (swipeVerticalEnabled) | ||||
|             setBrightness(context, context?.getKey(VIDEO_PLAYER_BRIGHTNESS) ?: 1f) | ||||
|             setBrightness(context, context?.getKey(VIDEO_PLAYER_BRIGHTNESS) ?: 0f) | ||||
| 
 | ||||
|         navigationBarHeight = requireContext().getNavigationBarHeight() | ||||
|         statusBarHeight = requireContext().getStatusBarHeight() | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ import com.fasterxml.jackson.module.kotlin.KotlinModule | |||
| const val DOWNLOAD_HEADER_CACHE = "download_header_cache" | ||||
| //const val WATCH_HEADER_CACHE = "watch_header_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 SEARCH_PROVIDER_TOGGLE = "settings_providers_toggle" | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue