forked from github/wulkanowy-mirror
Fix null returns in widgets (#340)
This commit is contained in:
parent
80cb94c434
commit
bf6b857a3e
@ -104,7 +104,7 @@ class LuckyNumberWidgetProvider : BroadcastReceiver() {
|
||||
.toMaybe()
|
||||
.doOnSuccess { sharedPref.putLong(getStudentWidgetKey(appWidgetId), it.id) }
|
||||
}
|
||||
else -> null
|
||||
else -> Maybe.empty()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -165,7 +165,7 @@ class TimetableWidgetProvider : BroadcastReceiver() {
|
||||
.toMaybe()
|
||||
.doOnSuccess { sharedPref.putLong(getStudentWidgetKey(appWidgetId), it.id) }
|
||||
}
|
||||
else -> null
|
||||
else -> Maybe.empty()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ buildscript {
|
||||
}
|
||||
dependencies {
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath 'com.android.tools.build:gradle:3.4.0'
|
||||
classpath 'com.android.tools.build:gradle:3.4.1'
|
||||
classpath 'com.google.gms:google-services:4.2.0'
|
||||
classpath "io.fabric.tools:gradle:1.28.1"
|
||||
classpath "com.github.triplet.gradle:play-publisher:2.2.0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user