corrupted schedule bugfix
This commit is contained in:
parent
eda34bce65
commit
2f6f3a3066
|
@ -10,8 +10,8 @@ android {
|
|||
applicationId "com.adlerosn.brasilfurfest"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 29
|
||||
versionCode 49
|
||||
versionName "2019.8.6.3"
|
||||
versionCode 50
|
||||
versionName "2019.8.8.0"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ open class Observable<T : Any?> {
|
|||
open fun hasChanged() = changed
|
||||
fun notifyObservers() = notifyObservers(null)
|
||||
fun notifyObservers(arg: T?) {
|
||||
doAsync {
|
||||
// Don't do anything async here or you might lose data
|
||||
if (hasChanged()) {
|
||||
clearChanged()
|
||||
observers.forEach {
|
||||
|
@ -43,5 +43,4 @@ open class Observable<T : Any?> {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user