mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 23:51:21 +02:00
Small bug fixes (#614)
## Description Fixes the screen showing endless loading when toggling on automatic sign in Ports a bug fix to the device profile from the official app (https://github.com/jellyfin/jellyfin-androidtv/pull/5268)
This commit is contained in:
parent
3c11d4ba12
commit
977db0474a
2 changed files with 7 additions and 7 deletions
|
|
@ -23,8 +23,9 @@ import androidx.compose.ui.Modifier
|
|||
import androidx.compose.ui.graphics.RectangleShape
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.datastore.core.DataStore
|
||||
import androidx.lifecycle.Lifecycle
|
||||
import androidx.lifecycle.ViewModel
|
||||
import androidx.lifecycle.compose.LifecycleStartEffect
|
||||
import androidx.lifecycle.compose.LifecycleEventEffect
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
import androidx.lifecycle.viewModelScope
|
||||
import androidx.lifecycle.viewmodel.navigation3.rememberViewModelStoreNavEntryDecorator
|
||||
|
|
@ -224,13 +225,12 @@ class MainActivity : AppCompatActivity() {
|
|||
var showContent by remember {
|
||||
mutableStateOf(true)
|
||||
}
|
||||
LifecycleEventEffect(Lifecycle.Event.ON_STOP) {
|
||||
if (!preferences.appPreferences.signInAutomatically) {
|
||||
LifecycleStartEffect(Unit) {
|
||||
onStopOrDispose {
|
||||
showContent = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (showContent) {
|
||||
ApplicationContent(
|
||||
user = current.user,
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ fun createDeviceProfile(
|
|||
"main",
|
||||
"baseline",
|
||||
"constrained baseline",
|
||||
if (supportsAVCHigh10) "main 10" else null,
|
||||
if (supportsAVCHigh10) "high 10" else null,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue