This commit is contained in:
Lsong 2024-09-05 17:34:42 +08:00
parent b88cd7f48f
commit 8486ea4bf6
8 changed files with 6 additions and 65 deletions

BIN
Ducky.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 783 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 413 KiB

View File

@ -22,8 +22,8 @@ android {
applicationId = "me.lsong.mytv"
minSdk = 21
targetSdk = 34
versionCode = 1
versionName = "1.4.4"
versionCode = 2
versionName = "1.0.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {

View File

@ -2,17 +2,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.software.leanback"
android:required="false" />
<uses-feature android:name="android.software.leanback" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<application
android:name=".MyTVApplication"
android:allowBackup="true"

View File

@ -33,6 +33,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.input.key.Key
import androidx.compose.ui.input.key.KeyEventType
import androidx.compose.ui.input.key.key
@ -222,6 +223,7 @@ fun MainContent(
showMetadataProvider = { settingsViewModel.debugShowVideoPlayerMetadata },
modifier = Modifier
.fillMaxSize()
.background(Color.Black)
.focusRequester(focusRequester)
.focusable()
.handleLeanbackKeyEvents(

Binary file not shown.

Before

Width:  |  Height:  |  Size: 530 KiB

After

Width:  |  Height:  |  Size: 182 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long