Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
run detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
matsumo0922 committed Dec 14, 2023
1 parent e1cd2b5 commit 16d0cf4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/main/java/caios/android/fanbox/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ class MainActivity : FragmentActivity(), PostDownloader {
screenState = screenState,
containerColor = if (shouldUseDarkTheme) DarkDefaultColorScheme.surface else LightDefaultColorScheme.surface,
) {
var isAgreedTeams by remember(it.userData) { mutableStateOf(it.userData.isAgreedPrivacyPolicy && it.userData.isAgreedTermsOfService)}
var isAgreedTeams by remember(it.userData) {
mutableStateOf(it.userData.isAgreedPrivacyPolicy && it.userData.isAgreedTermsOfService)
}
var isAllowedPermission by remember(it.userData, it.isLoggedIn) { mutableStateOf(isAllowedPermission()) }

PixiViewTheme(
Expand All @@ -130,7 +132,7 @@ class MainActivity : FragmentActivity(), PostDownloader {
isAllowedPermission = true

viewModel.updateState()
}
},
)

AnimatedVisibility(
Expand Down

0 comments on commit 16d0cf4

Please sign in to comment.