From ef20dad993a7d29f01b0241fbfe59ac7d67c1a28 Mon Sep 17 00:00:00 2001 From: Damontecres Date: Sat, 29 Nov 2025 19:39:23 -0500 Subject: [PATCH] Fix settings changes needing a restart to apply --- .../com/github/damontecres/wholphin/MainActivity.kt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/github/damontecres/wholphin/MainActivity.kt b/app/src/main/java/com/github/damontecres/wholphin/MainActivity.kt index e544c0fb..80d8677d 100644 --- a/app/src/main/java/com/github/damontecres/wholphin/MainActivity.kt +++ b/app/src/main/java/com/github/damontecres/wholphin/MainActivity.kt @@ -113,12 +113,10 @@ class MainActivity : AppCompatActivity() { val current by serverRepository.current.observeAsState() val preferences = - remember(current) { - UserPreferences( - appPreferences, - current?.userDto?.configuration ?: DefaultUserConfiguration, - ) - } + UserPreferences( + appPreferences, + current?.userDto?.configuration ?: DefaultUserConfiguration, + ) if (isRestoringSession) { Box( @@ -150,7 +148,7 @@ class MainActivity : AppCompatActivity() { } } val deviceProfile = - remember(current, appPreferences) { + remember(current, preferences) { createDeviceProfile( this@MainActivity, preferences,