From 1d7d1a118d074c063c12d02f52f9e8f8b35b2648 Mon Sep 17 00:00:00 2001 From: YaMiN Date: Tue, 26 Dec 2023 23:25:52 +0330 Subject: [PATCH] minor fix --- .../java/io/github/yamin8000/dooz/content/MainActivity.kt | 2 +- .../java/io/github/yamin8000/dooz/content/MainNavigation.kt | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/io/github/yamin8000/dooz/content/MainActivity.kt b/app/src/main/java/io/github/yamin8000/dooz/content/MainActivity.kt index 87b6589..ffe6cd1 100644 --- a/app/src/main/java/io/github/yamin8000/dooz/content/MainActivity.kt +++ b/app/src/main/java/io/github/yamin8000/dooz/content/MainActivity.kt @@ -31,7 +31,7 @@ class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - setContent { MainNavigation(adContent = { }) } + setContent { MainNavigation() } WindowCompat.setDecorFitsSystemWindows(window, false) } } \ No newline at end of file diff --git a/app/src/main/java/io/github/yamin8000/dooz/content/MainNavigation.kt b/app/src/main/java/io/github/yamin8000/dooz/content/MainNavigation.kt index 3fa68fb..5252a51 100644 --- a/app/src/main/java/io/github/yamin8000/dooz/content/MainNavigation.kt +++ b/app/src/main/java/io/github/yamin8000/dooz/content/MainNavigation.kt @@ -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) @@ -82,7 +80,6 @@ fun MainNavigation( composable(Nav.Routes.about) { AboutContent(onBackClick = { navController.popBackStack() }) } } - adContent() } } }