mirror of
https://github.com/etesync/android
synced 2025-01-03 12:21:01 +00:00
Edit collection fragment: fix crash.
This commit is contained in:
parent
4b6ce9ac5d
commit
fe376b22d6
@ -238,12 +238,15 @@ class EditCollectionFragment : Fragment() {
|
||||
}
|
||||
} catch (e: EtebaseException) {
|
||||
uiThread {
|
||||
val context = context
|
||||
if (context != null) {
|
||||
AlertDialog.Builder(requireContext())
|
||||
.setIcon(R.drawable.ic_info_dark)
|
||||
.setTitle(R.string.exception)
|
||||
.setMessage(e.localizedMessage)
|
||||
.setPositiveButton(android.R.string.yes) { _, _ -> }.show()
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
uiThread {
|
||||
loadingModel.setLoading(false)
|
||||
|
Loading…
Reference in New Issue
Block a user