Skip to content

Commit

Permalink
Replace toIntOrNull with toInt
Browse files Browse the repository at this point in the history
  • Loading branch information
slovdahl committed Nov 27, 2023
1 parent abf2755 commit 70e612c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ fun LoadHomePage(
navDeepLink { uriPattern = "$DEEPLINK_PREFIX_SET_SHORTCUT_TILE/{$ARG_SCREEN_SHORTCUTS_TILE_ID}" }
)
) { backStackEntry ->
val tileId = backStackEntry.arguments!!.getString(ARG_SCREEN_SHORTCUTS_TILE_ID)!!.toIntOrNull()
val tileId = backStackEntry.arguments!!.getString(ARG_SCREEN_SHORTCUTS_TILE_ID)!!.toInt()
SetShortcutsTileView(
shortcutEntities = mainViewModel.shortcutEntitiesMap[tileId] ?: emptyList(),
onShortcutEntitySelectionChange = { entityIndex ->
Expand Down

0 comments on commit 70e612c

Please sign in to comment.