Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
Update LenientNavHostFragment.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorAlbertos authored Jul 2, 2020
1 parent 2948169 commit 84d2bee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class LenientNavHostFragment : NavHostFragment() {
try {
super.onDestroyView()
} catch (e: IllegalStateException) {
// We only sallow the exception when it contains the message related with the issue that we know.
// We only swallow the exception when it contains the message related with the issue that we know.
// Otherwise we rethrow, this is brittle as it ties the implementation to a private reporting message error,
// but we prefer this way to avoid hiding unrelated exceptions.
if (e.message?.contains("does not have a NavController set") == false) {
Expand Down

0 comments on commit 84d2bee

Please sign in to comment.