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 12, 2023
1 parent d371905 commit 95eb88e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/src/main/java/caios/android/fanbox/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ class MainActivity : FragmentActivity(), PostDownloader {
screenState = screenState,
containerColor = if (shouldUseDarkTheme) DarkDefaultColorScheme.surface else LightDefaultColorScheme.surface,
) {
val isAgreedTeams = remember(it.userData) { it.userData.isAgreedPrivacyPolicy && it.userData.isAgreedTermsOfService }
val isAgreedTeams =
remember(it.userData) { it.userData.isAgreedPrivacyPolicy && it.userData.isAgreedTermsOfService }
val isAllowedPermission = remember(it.userData, it.isLoggedIn) { isAllowedPermission() }

PixiViewTheme(
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/caios/android/fanbox/ui/PixiViewApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ private fun IdleScreen(
navigationType: PixiViewNavigationType,
modifier: Modifier = Modifier,
) {
val bottomSheetState = rememberModalBottomSheetState(initialValue = ModalBottomSheetValue.Hidden, skipHalfExpanded = true)
val bottomSheetState =
rememberModalBottomSheetState(initialValue = ModalBottomSheetValue.Hidden, skipHalfExpanded = true)
val bottomSheetNavigator = remember { BottomSheetNavigator(bottomSheetState) }

PixiViewNavHost(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ internal fun PixiViewNavHost(
bottomSheetNavigator: BottomSheetNavigator = rememberBottomSheetNavigator(),
startDestination: String = LibraryRoute,
) {

ModalBottomSheetLayout(
modifier = modifier,
bottomSheetNavigator = bottomSheetNavigator,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package caios.android.fanbox.feature.welcome

import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.navigation.compose.NavHost
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package caios.android.fanbox.feature.welcome.top

import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass
import androidx.compose.ui.Modifier
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
Expand Down

0 comments on commit 95eb88e

Please sign in to comment.