First commit

This commit is contained in:
2026-03-23 01:14:54 +01:00
commit b0af937592
54 changed files with 2298 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
package net.tinsae.tv
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatDelegate
import androidx.tv.material3.ExperimentalTvMaterial3Api
import net.tinsae.tv.ui.screens.MainScreen
import net.tinsae.tv.ui.theme.TVTheme
class MainActivity : ComponentActivity() {
@OptIn(ExperimentalTvMaterial3Api::class)
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// Ensure the app starts in dark mode
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES)
// Ensure the window background is transparent to allow SurfaceView (Video)
// to be visible through the UI layers.
window.setBackgroundDrawableResource(android.R.color.transparent)
setContent {
TVTheme {
MainScreen()
}
}
}
}