Made player_view unfocusable to prevent white overlay on Chromebooks

This commit is contained in:
Blatzar 2023-01-16 23:49:59 +01:00
parent 307d4dd494
commit cd8c5966e6
3 changed files with 4 additions and 2 deletions

View file

@ -948,8 +948,9 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
// Used to check current focus for TV // Used to check current focus for TV
// main { // main {
// while (true) { // while (true) {
// delay(1000) // delay(5000)
// println("Current focus: $currentFocus") // println("Current focus: $currentFocus")
// showToast(this, currentFocus.toString(), Toast.LENGTH_LONG)
// } // }
// } // }

View file

@ -18,6 +18,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@android:color/black" android:background="@android:color/black"
android:focusable="false"
app:auto_show="true" app:auto_show="true"
app:backgroundTint="@android:color/black" app:backgroundTint="@android:color/black"
app:controller_layout_id="@layout/player_custom_layout" app:controller_layout_id="@layout/player_custom_layout"

View file

@ -17,10 +17,10 @@
android:id="@+id/player_view" android:id="@+id/player_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusable="false"
app:auto_show="true" app:auto_show="true"
app:controller_layout_id="@layout/player_custom_layout_tv" app:controller_layout_id="@layout/player_custom_layout_tv"
app:hide_on_touch="false" app:hide_on_touch="false"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"