Skip to content

Commit c2263f1

Browse files
committed
Add appTheme for UI
1 parent 2b520ee commit c2263f1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app/src/main/java/com/example/jetpackpracticekit/ui/main/MainActivity.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
88
import androidx.lifecycle.lifecycleScope
99
import com.example.jetpackpracticekit.ui.navgraphs.AuthNavGraph
1010
import com.example.jetpackpracticekit.ui.navgraphs.UiSamplesNavGraph
11+
import com.example.jetpackpracticekit.ui.theme.JetPackPracticeKitTheme
1112
import com.example.jetpackpracticekit.utils.PrefManager
1213
import kotlinx.coroutines.delay
1314
import kotlinx.coroutines.launch
@@ -26,11 +27,15 @@ class MainActivity : ComponentActivity() {
2627
val isLoggedIn = preferencesManager.getBooleanValue("isLoggedIn", false)
2728
if (isLoggedIn) {
2829
setContent {
29-
UiSamplesNavGraph()
30+
JetPackPracticeKitTheme {
31+
UiSamplesNavGraph()
32+
}
3033
}
3134
} else {
3235
setContent {
33-
AuthNavGraph()
36+
JetPackPracticeKitTheme {
37+
AuthNavGraph()
38+
}
3439
}
3540
}
3641
}

0 commit comments

Comments
 (0)