mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2024-09-30 00:40:49 +00:00
Deleting unecessary logs
This commit is contained in:
parent
a4cc6337f9
commit
ff20f0a266
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user