-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
app/src/main/java/team/retum/jobisandroidv2/navigation/MainNavigation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
package team.retum.jobisandroidv2.navigation | ||
|
||
import androidx.navigation.NavController | ||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.NavHostController | ||
import androidx.navigation.navigation | ||
import team.retum.alarm.navigation.alarm | ||
import team.retum.jobisandroidv2.root.NAVIGATION_ROOT | ||
import team.retum.jobisandroidv2.root.root | ||
|
||
const val NAVIGATION_MAIN = "main" | ||
|
||
fun NavGraphBuilder.mainNavigation(navController: NavController) { | ||
fun NavGraphBuilder.mainNavigation(navHostController: NavHostController) { | ||
navigation( | ||
route = NAVIGATION_MAIN, | ||
startDestination = NAVIGATION_ROOT, | ||
) { | ||
root(navHostController = navController) | ||
alarm(onBackPressed = navController::popBackStack) | ||
root(navHostController = navHostController) | ||
alarm(onBackPressed = navHostController::popBackStack) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters