mirror of
				https://github.com/recloudstream/cloudstream.git
				synced 2024-08-15 01:53:11 +00:00 
			
		
		
		
	small fixes
This commit is contained in:
		
							parent
							
								
									86e87fdef2
								
							
						
					
					
						commit
						5048bc5368
					
				
					 5 changed files with 20 additions and 4 deletions
				
			
		|  | @ -1392,6 +1392,7 @@ class PlayerFragment : Fragment() { | |||
|             val subsSettings = sourceDialog.findViewById<View>(R.id.subs_settings)!! | ||||
| 
 | ||||
|             subsSettings.setOnClickListener { | ||||
|                 saveArguments() | ||||
|                 SubtitlesFragment.push(activity) | ||||
|                 sourceDialog.dismiss() | ||||
|             } | ||||
|  | @ -1564,7 +1565,6 @@ class PlayerFragment : Fragment() { | |||
| 
 | ||||
|     private var isCurrentlySkippingEp = false | ||||
| 
 | ||||
| 
 | ||||
|     fun tryNextMirror() { | ||||
|         val urls = getUrls() | ||||
|         val current = getCurrentUrl() | ||||
|  | @ -1637,7 +1637,6 @@ class PlayerFragment : Fragment() { | |||
|     } | ||||
| 
 | ||||
|     override fun onDestroy() { | ||||
| 
 | ||||
|         /*  val lp = activity?.window?.attributes | ||||
| 
 | ||||
| 
 | ||||
|  | @ -1689,6 +1688,20 @@ class PlayerFragment : Fragment() { | |||
|         } | ||||
|     } | ||||
| 
 | ||||
|     private fun saveArguments() { | ||||
|         if (this::exoPlayer.isInitialized) { | ||||
|             arguments?.putInt(STATE_RESUME_WINDOW, exoPlayer.currentWindowIndex) | ||||
|             arguments?.putLong(STATE_RESUME_POSITION, exoPlayer.currentPosition) | ||||
|         } | ||||
|         arguments?.putBoolean(STATE_PLAYER_FULLSCREEN, isFullscreen) | ||||
|         arguments?.putBoolean(STATE_PLAYER_PLAYING, isPlayerPlaying) | ||||
|         arguments?.putInt(RESIZE_MODE_KEY, resizeMode) | ||||
|         arguments?.putFloat(PLAYBACK_SPEED, playbackSpeed) | ||||
|         if (!isDownloadedFile) { | ||||
|             arguments?.putString("data", mapper.writeValueAsString(playerData)) | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     override fun onSaveInstanceState(outState: Bundle) { | ||||
|         savePos() | ||||
| 
 | ||||
|  |  | |||
|  | @ -29,6 +29,7 @@ | |||
|             android:layout_height="5dp"> | ||||
|     </androidx.core.widget.ContentLoadingProgressBar> | ||||
|     <GridLayout | ||||
|             android:foreground="?android:attr/selectableItemBackgroundBorderless" | ||||
|             android:layout_width="match_parent" | ||||
|             android:layout_height="match_parent"> | ||||
|         <ImageView | ||||
|  |  | |||
|  | @ -12,6 +12,7 @@ | |||
|         android:layout_marginBottom="10dp" | ||||
| > | ||||
|     <LinearLayout | ||||
|             android:foreground="?android:attr/selectableItemBackgroundBorderless" | ||||
|             android:layout_width="match_parent" | ||||
|             android:orientation="horizontal" | ||||
|             android:layout_height="wrap_content"> | ||||
|  |  | |||
|  | @ -51,6 +51,7 @@ | |||
|             android:layout_height="5dp"> | ||||
|     </androidx.core.widget.ContentLoadingProgressBar> | ||||
|     <LinearLayout | ||||
|             android:foreground="?android:attr/selectableItemBackgroundBorderless" | ||||
|             android:layout_width="match_parent" | ||||
|             android:layout_height="match_parent"> | ||||
|         <ImageView | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue