mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-13 17:51:57 +00:00
fix crash in taskreceiver
This commit is contained in:
parent
63c6e5e1fd
commit
07d8f1c3e3
2 changed files with 2 additions and 2 deletions
|
|
@ -150,7 +150,7 @@ android {
|
||||||
buildConfigField "String", "TESTING_LEVEL", "\"production\""
|
buildConfigField "String", "TESTING_LEVEL", "\"production\""
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
|
|
||||||
versionCode 2168
|
versionCode 2169
|
||||||
versionName "2.0"
|
versionName "2.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ class TaskReceiver : BroadcastReceiver() {
|
||||||
taskRepository.getTask(taskId ?: "")
|
taskRepository.getTask(taskId ?: "")
|
||||||
.firstElement()
|
.firstElement()
|
||||||
.subscribe(Consumer {
|
.subscribe(Consumer {
|
||||||
if (it.completed) {
|
if (it.isValid && it.completed) {
|
||||||
return@Consumer
|
return@Consumer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue