Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yamin8000 committed Dec 26, 2023
1 parent 5a6e529 commit 1d7d1a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {

super.onCreate(savedInstanceState)
setContent { MainNavigation(adContent = { }) }
setContent { MainNavigation() }
WindowCompat.setDecorFitsSystemWindows(window, false)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ import io.github.yamin8000.dooz.util.Constants
import io.github.yamin8000.dooz.util.DataStoreHelper

@Composable
fun MainNavigation(
adContent: @Composable () -> Unit
) {
fun MainNavigation() {
val context = LocalContext.current
var theme by remember { mutableStateOf(ThemeSetting.System) }
val dataStore = DataStoreHelper(context.settings)
Expand Down Expand Up @@ -82,7 +80,6 @@ fun MainNavigation(

composable(Nav.Routes.about) { AboutContent(onBackClick = { navController.popBackStack() }) }
}
adContent()
}
}
}
Expand Down

0 comments on commit 1d7d1a1

Please sign in to comment.