Skip to content

Commit

Permalink
fix: [ANDROAPP-6691] Null pointer on show dialog
Browse files Browse the repository at this point in the history
Signed-off-by: andresmr <[email protected]>
  • Loading branch information
andresmr committed Nov 26, 2024
1 parent 7c32c47 commit 67532da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,8 @@ class DataSetTableActivity : ActivityGlobalAbstract(), DataSetTableContract.View
}
})
.onNoConnectionListener {
val contextView = findViewById<View>(R.id.navigationBar)
Snackbar.make(
contextView,
binding.root,
R.string.sync_offline_check_connection,
Snackbar.LENGTH_SHORT,
).show()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,8 @@ class ProgramEventDetailActivity :
}
})
.onNoConnectionListener {
val contextView = findViewById<View>(R.id.navigationBar)
Snackbar.make(
contextView,
binding.root,
R.string.sync_offline_check_connection,
Snackbar.LENGTH_SHORT,
).show()
Expand Down Expand Up @@ -524,9 +523,8 @@ class ProgramEventDetailActivity :
}
})
.onNoConnectionListener {
val contextView = findViewById<View>(R.id.rootView)
Snackbar.make(
contextView,
binding.root,
R.string.sync_offline_check_connection,
Snackbar.LENGTH_SHORT,
).show()
Expand Down

0 comments on commit 67532da

Please sign in to comment.