Fix / crash not called on UI Thread
This commit is contained in:
parent
2a2431e490
commit
2eee25bbc1
|
@ -45,8 +45,10 @@ object PopupAlertManager {
|
|||
synchronized(alertFiFo) {
|
||||
alertFiFo.add(alert)
|
||||
}
|
||||
weakCurrentActivity?.get()?.runOnUiThread {
|
||||
displayNextIfPossible()
|
||||
}
|
||||
}
|
||||
|
||||
fun cancelAlert(uid: String) {
|
||||
synchronized(alertFiFo) {
|
||||
|
@ -62,10 +64,12 @@ object PopupAlertManager {
|
|||
|
||||
//it could also be the current one
|
||||
if (currentAlerter?.uid == uid) {
|
||||
weakCurrentActivity?.get()?.runOnUiThread {
|
||||
Alerter.hide()
|
||||
currentIsDismissed()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
fun onNewActivityDisplayed(activity: Activity) {
|
||||
|
|
Loading…
Reference in New Issue