forked from recloudstream/cloudstream
		
	fixed title visibility bug on android TV
This commit is contained in:
		
							parent
							
								
									3547b5c994
								
							
						
					
					
						commit
						6677d6aaee
					
				
					 2 changed files with 19 additions and 25 deletions
				
			
		|  | @ -406,6 +406,8 @@ open class FullScreenPlayer : AbstractPlayerFragment() { | ||||||
|         player_pause_play?.isGone = isGone |         player_pause_play?.isGone = isGone | ||||||
|         //player_buffering?.isGone = isGone |         //player_buffering?.isGone = isGone | ||||||
|         player_top_holder?.isGone = isGone |         player_top_holder?.isGone = isGone | ||||||
|  |         player_video_title?.isGone = isGone | ||||||
|  |         player_video_title_rez?.isGone = isGone | ||||||
|         player_center_menu?.isGone = isGone |         player_center_menu?.isGone = isGone | ||||||
|         player_lock?.isGone = !isShowing |         player_lock?.isGone = !isShowing | ||||||
|         //player_media_route_button?.isClickable = !isGone |         //player_media_route_button?.isClickable = !isGone | ||||||
|  |  | ||||||
|  | @ -1,18 +1,16 @@ | ||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <androidx.constraintlayout.widget.ConstraintLayout | <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||||
|         xmlns:android="http://schemas.android.com/apk/res/android" |  | ||||||
|         xmlns:app="http://schemas.android.com/apk/res-auto" |         xmlns:app="http://schemas.android.com/apk/res-auto" | ||||||
|  |         xmlns:tools="http://schemas.android.com/tools" | ||||||
|         android:layout_width="match_parent" |         android:layout_width="match_parent" | ||||||
|         android:layout_height="match_parent" |         android:layout_height="match_parent" | ||||||
|         xmlns:tools="http://schemas.android.com/tools" |  | ||||||
|         android:orientation="horizontal" |         android:orientation="horizontal" | ||||||
|         android:keepScreenOn="true" |         android:keepScreenOn="true" | ||||||
|         android:id="@+id/player_background" |         android:id="@+id/player_background" | ||||||
|         app:backgroundTint="@android:color/black" |         app:backgroundTint="@android:color/black" | ||||||
|         android:background="@android:color/black" |         android:background="@android:color/black" | ||||||
|         android:screenOrientation="sensorLandscape" |         android:screenOrientation="sensorLandscape" | ||||||
|         app:surface_type="texture_view" |         app:surface_type="texture_view"> | ||||||
| > |  | ||||||
|     <!-- |     <!-- | ||||||
|           app:fastforward_increment="10000" |           app:fastforward_increment="10000" | ||||||
|             app:rewind_increment="10000"--> |             app:rewind_increment="10000"--> | ||||||
|  | @ -28,8 +26,7 @@ | ||||||
|             app:layout_constraintEnd_toEndOf="parent" |             app:layout_constraintEnd_toEndOf="parent" | ||||||
|             app:layout_constraintStart_toStartOf="parent" |             app:layout_constraintStart_toStartOf="parent" | ||||||
|             app:layout_constraintTop_toTopOf="parent" |             app:layout_constraintTop_toTopOf="parent" | ||||||
|             app:controller_layout_id="@layout/player_custom_layout" |             app:controller_layout_id="@layout/player_custom_layout" /> | ||||||
|     /> |  | ||||||
| 
 | 
 | ||||||
|     <FrameLayout |     <FrameLayout | ||||||
|             app:layout_constraintBottom_toBottomOf="parent" |             app:layout_constraintBottom_toBottomOf="parent" | ||||||
|  | @ -40,8 +37,7 @@ | ||||||
|             android:layout_height="match_parent" |             android:layout_height="match_parent" | ||||||
|             android:id="@+id/player_loading_overlay" |             android:id="@+id/player_loading_overlay" | ||||||
|             android:background="@android:color/black" |             android:background="@android:color/black" | ||||||
|             android:backgroundTint="@android:color/black" |             android:backgroundTint="@android:color/black"> | ||||||
|     > |  | ||||||
| 
 | 
 | ||||||
|         <com.google.android.material.button.MaterialButton |         <com.google.android.material.button.MaterialButton | ||||||
|                 tools:visibility="visible" |                 tools:visibility="visible" | ||||||
|  | @ -60,16 +56,13 @@ | ||||||
|                 android:backgroundTint="@color/transparent" |                 android:backgroundTint="@color/transparent" | ||||||
|                 style="@style/Widget.MaterialComponents.Button.OutlinedButton" |                 style="@style/Widget.MaterialComponents.Button.OutlinedButton" | ||||||
|                 android:layout_width="wrap_content" |                 android:layout_width="wrap_content" | ||||||
|                 android:layout_height="45dp"> |                 android:layout_height="45dp" /> | ||||||
|         </com.google.android.material.button.MaterialButton> |  | ||||||
| 
 | 
 | ||||||
|         <ProgressBar |         <ProgressBar | ||||||
|                 android:layout_width="50dp" |                 android:layout_width="50dp" | ||||||
|                 android:layout_height="50dp" |                 android:layout_height="50dp" | ||||||
|                 android:layout_gravity="center" |                 android:layout_gravity="center" | ||||||
|                 android:id="@+id/main_load" |                 android:id="@+id/main_load" /> | ||||||
|         > |  | ||||||
|         </ProgressBar> |  | ||||||
| 
 | 
 | ||||||
|         <FrameLayout |         <FrameLayout | ||||||
|                 android:id="@+id/video_go_back_holder_holder" |                 android:id="@+id/video_go_back_holder_holder" | ||||||
|  | @ -77,16 +70,16 @@ | ||||||
|                 app:layout_constraintStart_toStartOf="parent" |                 app:layout_constraintStart_toStartOf="parent" | ||||||
|                 app:layout_constraintTop_toTopOf="parent" |                 app:layout_constraintTop_toTopOf="parent" | ||||||
|                 android:layout_width="wrap_content" |                 android:layout_width="wrap_content" | ||||||
|                 android:layout_height="wrap_content" |                 android:layout_height="wrap_content"> | ||||||
|         > | 
 | ||||||
|             <ImageView |             <ImageView | ||||||
|                     android:layout_width="30dp" |                     android:layout_width="30dp" | ||||||
|                     android:layout_height="30dp" |                     android:layout_height="30dp" | ||||||
|                     android:layout_gravity="center" |                     android:layout_gravity="center" | ||||||
|                     android:src="@drawable/ic_baseline_arrow_back_24" |                     android:src="@drawable/ic_baseline_arrow_back_24" | ||||||
|                     app:tint="@android:color/white" |                     app:tint="@android:color/white" | ||||||
|             > |                     android:contentDescription="@string/go_back_img_des" /> | ||||||
|             </ImageView> | 
 | ||||||
|             <ImageView |             <ImageView | ||||||
|                     android:id="@+id/player_loading_go_back" |                     android:id="@+id/player_loading_go_back" | ||||||
|                     android:layout_width="70dp" |                     android:layout_width="70dp" | ||||||
|  | @ -94,10 +87,11 @@ | ||||||
|                     android:layout_gravity="center" |                     android:layout_gravity="center" | ||||||
|                     android:focusable="true" |                     android:focusable="true" | ||||||
|                     android:clickable="true" |                     android:clickable="true" | ||||||
|                     android:background="@drawable/video_tap_button_always_white"> |                     android:background="@drawable/video_tap_button_always_white" | ||||||
|             </ImageView> |                     android:contentDescription="@string/go_back_img_des"/> | ||||||
|         </FrameLayout> |         </FrameLayout> | ||||||
|     </FrameLayout> |     </FrameLayout> | ||||||
|  | 
 | ||||||
|     <FrameLayout |     <FrameLayout | ||||||
|             android:visibility="gone" |             android:visibility="gone" | ||||||
|             android:paddingStart="20dp" |             android:paddingStart="20dp" | ||||||
|  | @ -120,9 +114,8 @@ | ||||||
|                 android:textStyle="bold" |                 android:textStyle="bold" | ||||||
|                 android:textColor="@color/white" |                 android:textColor="@color/white" | ||||||
|                 android:id="@+id/video_torrent_progress" |                 android:id="@+id/video_torrent_progress" | ||||||
|                 tools:text="78% at 18kb/s" |                 tools:text="78% at 18kb/s" /> | ||||||
|         > | 
 | ||||||
|         </TextView> |  | ||||||
|         <TextView |         <TextView | ||||||
|                 android:layout_width="match_parent" |                 android:layout_width="match_parent" | ||||||
|                 android:layout_height="wrap_content" |                 android:layout_height="wrap_content" | ||||||
|  | @ -132,7 +125,6 @@ | ||||||
|                 android:textColor="@color/white" |                 android:textColor="@color/white" | ||||||
|                 android:id="@+id/video_torrent_seeders" |                 android:id="@+id/video_torrent_seeders" | ||||||
|                 tools:text="17 seeders" |                 tools:text="17 seeders" | ||||||
|                 app:layout_constraintTop_toBottomOf="@+id/player_video_title"> |                 app:layout_constraintTop_toBottomOf="@+id/player_video_title" /> | ||||||
|         </TextView> |  | ||||||
|     </FrameLayout> |     </FrameLayout> | ||||||
| </androidx.constraintlayout.widget.ConstraintLayout> | </androidx.constraintlayout.widget.ConstraintLayout> | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue