migrate player language settings to DialogFragment; update hideBars()
* player language settings is now aDialogFragment * update hideBars() to work with any window & view combination * update hideBars() to use WindowCompat
This commit is contained in:
		@ -24,7 +24,7 @@
 | 
			
		||||
        android:layout_height="70dp"
 | 
			
		||||
        android:layout_gravity="center"
 | 
			
		||||
        android:indeterminate="true"
 | 
			
		||||
        app:indicatorColor="@color/exo_white"
 | 
			
		||||
        app:indicatorColor="@color/player_white"
 | 
			
		||||
        tools:visibility="visible" />
 | 
			
		||||
 | 
			
		||||
    <LinearLayout
 | 
			
		||||
@ -84,7 +84,7 @@
 | 
			
		||||
        android:textColor="@android:color/primary_text_light"
 | 
			
		||||
        android:textSize="16sp"
 | 
			
		||||
        android:visibility="gone"
 | 
			
		||||
        app:backgroundTint="@color/exo_white"
 | 
			
		||||
        app:backgroundTint="@color/player_white"
 | 
			
		||||
        app:iconGravity="textStart" />
 | 
			
		||||
 | 
			
		||||
    <com.google.android.material.button.MaterialButton
 | 
			
		||||
@ -100,7 +100,7 @@
 | 
			
		||||
        android:textColor="@android:color/primary_text_light"
 | 
			
		||||
        android:textSize="16sp"
 | 
			
		||||
        android:visibility="gone"
 | 
			
		||||
        app:backgroundTint="@color/exo_white"
 | 
			
		||||
        app:backgroundTint="@color/player_white"
 | 
			
		||||
        app:iconGravity="textStart" />
 | 
			
		||||
 | 
			
		||||
</FrameLayout>
 | 
			
		||||
@ -37,7 +37,7 @@
 | 
			
		||||
            android:layout_marginEnd="44dp"
 | 
			
		||||
            android:text="@string/subtitles"
 | 
			
		||||
            android:textAlignment="center"
 | 
			
		||||
            android:textColor="@color/exo_white"
 | 
			
		||||
            android:textColor="@color/player_white"
 | 
			
		||||
            android:textSize="16sp"
 | 
			
		||||
            android:textStyle="bold" />
 | 
			
		||||
 | 
			
		||||
@ -75,7 +75,7 @@
 | 
			
		||||
            android:layout_marginEnd="7dp"
 | 
			
		||||
            android:text="@string/cancel"
 | 
			
		||||
            android:textAllCaps="false"
 | 
			
		||||
            android:textColor="@color/exo_white"
 | 
			
		||||
            android:textColor="@color/player_white"
 | 
			
		||||
            android:textSize="16sp"
 | 
			
		||||
            app:backgroundTint="@color/buttonBackgroundLight"
 | 
			
		||||
            app:layout_constraintBottom_toBottomOf="parent"
 | 
			
		||||
 | 
			
		||||
@ -26,6 +26,9 @@
 | 
			
		||||
    <color name="buttonBackgroundDark">#ffffff</color>
 | 
			
		||||
    <color name="controlHighlightDark">#11ffffff</color>
 | 
			
		||||
 | 
			
		||||
    <!-- player colors -->
 | 
			
		||||
    <color name="player_white">#ffffff</color>
 | 
			
		||||
 | 
			
		||||
    <color name="ic_launcher_background">#ffffff</color>
 | 
			
		||||
    <color name="ic_splash_background">#ffffff</color>
 | 
			
		||||
</resources>
 | 
			
		||||
@ -86,4 +86,13 @@
 | 
			
		||||
        <item name="android:popupBackground">?themeSecondary</item>
 | 
			
		||||
    </style>
 | 
			
		||||
 | 
			
		||||
    <style name="FullScreenDialogStyle" parent="Theme.MaterialComponents.Light.NoActionBar">
 | 
			
		||||
        <item name="android:windowNoTitle">true</item>
 | 
			
		||||
        <item name="android:windowFullscreen">true</item>
 | 
			
		||||
        <item name="android:windowActionBar">false</item>
 | 
			
		||||
        <item name="android:windowIsFloating">false</item>
 | 
			
		||||
        <item name="android:windowBackground">@android:color/transparent</item>
 | 
			
		||||
    </style>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
</resources>
 | 
			
		||||
		Reference in New Issue
	
	Block a user