aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/activities/DebugActivity.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-09-27 20:15:11 -0400
committerAllan Wang <me@allanwang.ca>2018-09-27 20:15:11 -0400
commit2e22f2ae6a963a2e00dc4b50b4a308c80ebe68e2 (patch)
treeb0bfb3d1bede59bc6f54030c3b2ea51b3482ee28 /app/src/main/kotlin/com/pitchedapps/frost/activities/DebugActivity.kt
parent3aa44ba16e52ceaf37dd28a8075b302c42785526 (diff)
downloadfrost-2e22f2ae6a963a2e00dc4b50b4a308c80ebe68e2.tar.gz
frost-2e22f2ae6a963a2e00dc4b50b4a308c80ebe68e2.tar.bz2
frost-2e22f2ae6a963a2e00dc4b50b4a308c80ebe68e2.zip
Fix more lints
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/activities/DebugActivity.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/activities/DebugActivity.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/DebugActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/DebugActivity.kt
index 30f12c1d..139066a5 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/activities/DebugActivity.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/DebugActivity.kt
@@ -64,6 +64,7 @@ class DebugActivity : KauBaseActivity() {
fab.visible().setIcon(GoogleMaterial.Icon.gmd_bug_report, Prefs.iconColor)
fab.backgroundTintList = ColorStateList.valueOf(Prefs.accentColor)
fab.setOnClickListener {
+ _ ->
fab.hide()
val parent = baseDir(this)
@@ -76,11 +77,11 @@ class DebugActivity : KauBaseActivity() {
emitter.onSuccess(it)
}
}.subscribeOn(AndroidSchedulers.mainThread())
- Single.zip(listOf(rxScreenshot, rxBody), {
+ Single.zip(listOf(rxScreenshot, rxBody)) {
val screenshot = it[0] == true
val body = it[1] as? String
screenshot to body
- }).observeOn(AndroidSchedulers.mainThread())
+ }.observeOn(AndroidSchedulers.mainThread())
.subscribe { (screenshot, body), err ->
if (err != null) {
L.e { "DebugActivity error ${err.message}" }