forked from upstream-mirrors/quik
Move lambdas outside of parentheses
This commit is contained in:
@@ -65,7 +65,7 @@ class BlockedActivity : QkThemedActivity(), BlockedView {
|
||||
AlertDialog.Builder(this)
|
||||
.setTitle(R.string.blocked_unblock_dialog_title)
|
||||
.setMessage(R.string.blocked_unblock_dialog_message)
|
||||
.setPositiveButton(R.string.button_unblock, { _, _ -> confirmUnblockIntent.onNext(Unit) })
|
||||
.setPositiveButton(R.string.button_unblock) { _, _ -> confirmUnblockIntent.onNext(Unit) }
|
||||
.setNegativeButton(R.string.button_cancel, null)
|
||||
.show()
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ class BlockedViewModel @Inject constructor(
|
||||
?: false
|
||||
}
|
||||
.doOnNext { installed -> if (!installed) navigator.showSia() }
|
||||
.withLatestFrom(prefs.sia.asObservable(), { installed, enabled -> installed && !enabled })
|
||||
.withLatestFrom(prefs.sia.asObservable()) { installed, enabled -> installed && !enabled }
|
||||
.autoDisposable(view.scope())
|
||||
.subscribe { shouldEnable -> prefs.sia.set(shouldEnable) }
|
||||
|
||||
@@ -67,7 +67,7 @@ class BlockedViewModel @Inject constructor(
|
||||
|
||||
// Unblock conversation
|
||||
view.confirmUnblockIntent
|
||||
.withLatestFrom(view.unblockIntent, { _, threadId -> threadId })
|
||||
.withLatestFrom(view.unblockIntent) { _, threadId -> threadId }
|
||||
.autoDisposable(view.scope())
|
||||
.subscribe { threadId -> markUnblocked.execute(listOf(threadId)) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user