format code

This commit is contained in:
Pavel Poley 2022-05-11 12:04:26 +03:00
parent 5b75c5f26b
commit 9dc953def9
2 changed files with 3 additions and 9 deletions

View File

@ -465,9 +465,7 @@ class ContactsAdapter(
notifyItemMoved(fromPosition, toPosition) notifyItemMoved(fromPosition, toPosition)
} }
override fun onRowSelected(myViewHolder: ViewHolder?) { override fun onRowSelected(myViewHolder: ViewHolder?) { }
}
override fun onRowClear(myViewHolder: ViewHolder?) { override fun onRowClear(myViewHolder: ViewHolder?) {
onDragEndListener?.invoke() onDragEndListener?.invoke()

View File

@ -22,12 +22,8 @@ class ChangeSortingDialog(val activity: BaseSimpleActivity, private val showCust
activity.setupDialogStuff(view, this, R.string.sort_by) activity.setupDialogStuff(view, this, R.string.sort_by)
} }
currSorting = if (showCustomSorting) { currSorting = if (showCustomSorting && config.isCustomOrderSelected) {
if (config.isCustomOrderSelected) { SORT_BY_CUSTOM
SORT_BY_CUSTOM
} else {
config.sorting
}
} else { } else {
config.sorting config.sorting
} }