Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Elise Richards committed Nov 22, 2019
1 parent 48819af commit ab0937e
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions app/src/main/java/mozilla/lockbox/presenter/EditItemPresenter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ class EditItemPresenter(
Observables.combineLatest(getItem, dataStore.list)
.map { (item, list) ->
list.filter(
hostname = item.hostname,
httpRealm = item.httpRealm,
formSubmitURL = item.formSubmitURL
)
hostname = item.hostname,
httpRealm = item.httpRealm,
formSubmitURL = item.formSubmitURL
)
.map { it.username }
.toSet()
.minus(item.username)
Expand Down Expand Up @@ -129,11 +129,8 @@ class EditItemPresenter(
.addTo(compositeDisposable)

view.togglePasswordClicks
.subscribe {
dispatcher.dispatch(
ItemDetailAction.SetPasswordVisibility(view.isPasswordVisible.not())
)
}
.map { ItemDetailAction.SetPasswordVisibility(view.isPasswordVisible.not()) }
.subscribe(dispatcher::dispatch)
.addTo(compositeDisposable)

view.closeEntryClicks
Expand Down Expand Up @@ -183,7 +180,7 @@ class EditItemPresenter(
}

private fun checkDismissChanges(itemId: String) =
// When something has changes, then check with a dialog.
// When something has changes, then check with a dialog.
// otherwise, go back to the item detail screen.
credentialsToSave?.let { DialogAction.DiscardChangesDialog(itemId) }
?: ItemDetailAction.EndEditing(itemId)
Expand Down

0 comments on commit ab0937e

Please sign in to comment.