Deleting unecessary logs

pull/840/head
Vitor Pamplona 2024-04-17 17:46:49 -04:00
rodzic a4cc6337f9
commit ff20f0a266
2 zmienionych plików z 0 dodań i 7 usunięć

Wyświetl plik

@ -20,7 +20,6 @@
*/ */
package com.vitorpamplona.amethyst.ui package com.vitorpamplona.amethyst.ui
import android.util.Log
import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface import androidx.compose.material3.Surface
@ -45,8 +44,6 @@ fun prepareSharedViewModel(act: MainActivity): SharedPreferencesViewModel {
val displayFeatures = calculateDisplayFeatures(act) val displayFeatures = calculateDisplayFeatures(act)
val windowSizeClass = calculateWindowSizeClass(act) val windowSizeClass = calculateWindowSizeClass(act)
println("ZZAAPP Launcher $act.isOnMobileDataState $sharedPreferencesViewModel $displayFeatures $windowSizeClass")
LaunchedEffect(key1 = sharedPreferencesViewModel) { LaunchedEffect(key1 = sharedPreferencesViewModel) {
sharedPreferencesViewModel.init() sharedPreferencesViewModel.init()
sharedPreferencesViewModel.updateDisplaySettings(windowSizeClass, displayFeatures) sharedPreferencesViewModel.updateDisplaySettings(windowSizeClass, displayFeatures)
@ -64,7 +61,6 @@ fun AppScreen(
sharedPreferencesViewModel: SharedPreferencesViewModel, sharedPreferencesViewModel: SharedPreferencesViewModel,
serviceManager: ServiceManager, serviceManager: ServiceManager,
) { ) {
Log.d("onDispose", "ZZAAPP Launcher AppScreen $sharedPreferencesViewModel $serviceManager")
AmethystTheme(sharedPreferencesViewModel) { AmethystTheme(sharedPreferencesViewModel) {
// A surface container using the 'background' color from the theme // A surface container using the 'background' color from the theme
Surface( Surface(
@ -78,8 +74,6 @@ fun AppScreen(
accountStateViewModel.tryLoginExistingAccountAsync() accountStateViewModel.tryLoginExistingAccountAsync()
} }
Log.d("onDispose", "ZZAAPP Launcher AccountScreen $accountStateViewModel $sharedPreferencesViewModel")
AccountScreen(accountStateViewModel, sharedPreferencesViewModel) AccountScreen(accountStateViewModel, sharedPreferencesViewModel)
} }
} }

Wyświetl plik

@ -182,7 +182,6 @@ fun LoggedInPage(
contentResolver = { Amethyst.instance.contentResolver }, contentResolver = { Amethyst.instance.contentResolver },
) )
onDispose { onDispose {
Log.d("onDispose", "Called onDispose")
accountViewModel.account.signer.launcher.clearLauncher() accountViewModel.account.signer.launcher.clearLauncher()
lifeCycleOwner.lifecycle.removeObserver(observer) lifeCycleOwner.lifecycle.removeObserver(observer)
} }