Skip to content

Commit

Permalink
Fix detekt issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hichamboushaba committed Feb 7, 2025
1 parent 691c0ba commit ffadbf6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ fun <T> Fragment.handleDialogResult(
* a particular key-result pair to 1.
*/
fun Fragment.handleDialogNotice(
key: String, @IdRes entryId: Int,
key: String,
@IdRes entryId: Int,
@IdRes navHostId: Int? = null,
handler: () -> Unit
) {
Expand Down Expand Up @@ -293,5 +294,5 @@ fun Fragment.findNavController(@IdRes navHostId: Int): NavController {
}
parentFragment = parentFragment.parentFragment
}
throw IllegalStateException("No NavHostFragment found with id $navHostId")
error("No NavHostFragment found with id $navHostId")
}

0 comments on commit ffadbf6

Please sign in to comment.