mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-28 05:59:05 +03:00
Make sure for shown failure dialogs we get a stacktrace
Change-Id: I775908fffc555d11bde2f8afcff6fb85056b6989
This commit is contained in:
parent
00da88db1d
commit
e0f29a85bb
1 changed files with 2 additions and 0 deletions
|
@ -242,6 +242,7 @@ abstract class VectorBaseFragment<VB : ViewBinding> : Fragment(), MavericksView
|
|||
}
|
||||
|
||||
protected fun showErrorInSnackbar(throwable: Throwable) {
|
||||
Timber.i(throwable, "Show error snackbar for throwable")
|
||||
vectorBaseActivity.getCoordinatorLayout()?.showOptimizedSnackbar(errorFormatter.toHumanReadable(throwable))
|
||||
}
|
||||
|
||||
|
@ -304,6 +305,7 @@ abstract class VectorBaseFragment<VB : ViewBinding> : Fragment(), MavericksView
|
|||
* ========================================================================================== */
|
||||
|
||||
protected fun displayErrorDialog(throwable: Throwable) {
|
||||
Timber.i(throwable, "Showing error dialog for throwable")
|
||||
MaterialAlertDialogBuilder(requireActivity())
|
||||
.setTitle(R.string.dialog_title_error)
|
||||
.setMessage(errorFormatter.toHumanReadable(throwable))
|
||||
|
|
Loading…
Reference in a new issue