Commit abd1b487 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Fix bad formatting

parent d5acac79
...@@ -238,13 +238,13 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView { ...@@ -238,13 +238,13 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView {
context?.let { context?.let {
AlertDialog.Builder(it) AlertDialog.Builder(it)
.setTitle(R.string.dialog_sort_title) .setTitle(R.string.dialog_sort_title)
.setView(dialogLayout) .setView(dialogLayout)
.setPositiveButton(R.string.msg_sort) { dialog, _ -> .setPositiveButton(R.string.msg_sort) { dialog, _ ->
invalidateQueryOnSearch() invalidateQueryOnSearch()
updateSort() updateSort()
dialog.dismiss() dialog.dismiss()
}.show() }.show()
} }
} }
} }
......
...@@ -299,13 +299,13 @@ class ProfileFragment : Fragment(), ProfileView, ActionMode.Callback { ...@@ -299,13 +299,13 @@ class ProfileFragment : Fragment(), ProfileView, ActionMode.Callback {
context?.let { context?.let {
val builder = AlertDialog.Builder(it) val builder = AlertDialog.Builder(it)
builder.setTitle(R.string.title_are_you_sure) builder.setTitle(R.string.title_are_you_sure)
.setView(passwordEditText) .setView(passwordEditText)
.setPositiveButton(R.string.action_delete_account) { _, _ -> .setPositiveButton(R.string.action_delete_account) { _, _ ->
presenter.deleteAccount(passwordEditText.text.toString()) presenter.deleteAccount(passwordEditText.text.toString())
} }
.setNegativeButton(android.R.string.no) { dialog, _ -> dialog.cancel() } .setNegativeButton(android.R.string.no) { dialog, _ -> dialog.cancel() }
.create() .create()
.show() .show()
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment