mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 15:50:16 +02:00
Fix settings changes needing a restart to apply
This commit is contained in:
parent
8a2481362d
commit
ef20dad993
1 changed files with 5 additions and 7 deletions
|
|
@ -113,12 +113,10 @@ class MainActivity : AppCompatActivity() {
|
||||||
val current by serverRepository.current.observeAsState()
|
val current by serverRepository.current.observeAsState()
|
||||||
|
|
||||||
val preferences =
|
val preferences =
|
||||||
remember(current) {
|
|
||||||
UserPreferences(
|
UserPreferences(
|
||||||
appPreferences,
|
appPreferences,
|
||||||
current?.userDto?.configuration ?: DefaultUserConfiguration,
|
current?.userDto?.configuration ?: DefaultUserConfiguration,
|
||||||
)
|
)
|
||||||
}
|
|
||||||
|
|
||||||
if (isRestoringSession) {
|
if (isRestoringSession) {
|
||||||
Box(
|
Box(
|
||||||
|
|
@ -150,7 +148,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val deviceProfile =
|
val deviceProfile =
|
||||||
remember(current, appPreferences) {
|
remember(current, preferences) {
|
||||||
createDeviceProfile(
|
createDeviceProfile(
|
||||||
this@MainActivity,
|
this@MainActivity,
|
||||||
preferences,
|
preferences,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue