Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan committed Dec 5, 2021
2 parents 9047cf1 + 7fff60a commit 0031566
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ class MainActivity : BaseActivity() {
}

private fun checkDestination() = with(getNavigationController()) {
if (mainViewModel.isFistRun()) {
graph = navInflater.inflate(R.navigation.main_graph)
.apply {
startDestination = R.id.sliderFragment
}
graph = navInflater.inflate(R.navigation.main_graph).apply {
startDestination = if (mainViewModel.isFistRun()) {
R.id.sliderFragment
} else {
R.id.calculatorFragment
}
}
}

Expand Down
1 change: 0 additions & 1 deletion android/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
app:defaultNavHost="true"
app:navGraph="@navigation/main_graph"
tools:ignore="FragmentTagUsage" />

0 comments on commit 0031566

Please sign in to comment.