Skip to content
This repository was archived by the owner on Oct 8, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/smartphone/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ android {
defaultConfig {
applicationId = "com.m3u.smartphone"
minSdk = 26
targetSdk = 33
targetSdk = 36
versionCode = 145
versionName = "1.15.1"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.m3u.smartphone.ui.business.channel
import android.content.Intent
import android.content.res.Configuration
import android.os.Bundle
import android.view.WindowManager
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
Expand Down Expand Up @@ -48,6 +49,9 @@ class PlayerActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
enableEdgeToEdge()
super.onCreate(savedInstanceState)
// The player View's own `keepScreenOn` propagation is unreliable on some OEMs
// (e.g. Samsung One UI), so this Activity keeps the window flag directly.
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
handleIntent(intent)
setContent {
Toolkit(
Expand Down
Loading