Use our OkHttpClient in updates checker. It should fix the updater on KitKat due to TLS

This commit is contained in:
inorichi
2018-04-06 10:02:01 +02:00
parent 499def3daa
commit 7464497c88
3 changed files with 6 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ fun Context.toast(@StringRes resource: Int, duration: Int = Toast.LENGTH_SHORT)
* @param duration the duration of the toast. Defaults to short.
*/
fun Context.toast(text: String?, duration: Int = Toast.LENGTH_SHORT) {
Toast.makeText(this, text, duration).show()
Toast.makeText(this, text.orEmpty(), duration).show()
}
/**