Fix null returns in widgets (#340)

This commit is contained in:
Rafał Borcz 2019-05-18 00:22:07 +02:00 committed by Mikołaj Pich
parent 80cb94c434
commit bf6b857a3e
3 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ class LuckyNumberWidgetProvider : BroadcastReceiver() {
.toMaybe()
.doOnSuccess { sharedPref.putLong(getStudentWidgetKey(appWidgetId), it.id) }
}
else -> null
else -> Maybe.empty()
}
}
}

View File

@ -165,7 +165,7 @@ class TimetableWidgetProvider : BroadcastReceiver() {
.toMaybe()
.doOnSuccess { sharedPref.putLong(getStudentWidgetKey(appWidgetId), it.id) }
}
else -> null
else -> Maybe.empty()
}
}
}

View File

@ -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"