mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-14 10:11:58 +00:00
Fix crash when showing some dialogs
This commit is contained in:
parent
1db19b1461
commit
26185b245d
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ open class HabiticaAlertDialog(context: Context) : AlertDialog(context, R.style.
|
|||
private var dialogQueue = mutableListOf<HabiticaAlertDialog>()
|
||||
|
||||
private fun showNextInQueue(currentDialog: HabiticaAlertDialog) {
|
||||
if (dialogQueue.first() == currentDialog) {
|
||||
if (dialogQueue.firstOrNull() == currentDialog) {
|
||||
dialogQueue.removeAt(0)
|
||||
}
|
||||
if (dialogQueue.size > 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue