Commit f403fa6a authored by Noor Binte Amir's avatar Noor Binte Amir

Update ChatRoomsFragment.kt

Fixed code formatting.
parent bae8504e
...@@ -301,10 +301,10 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView { ...@@ -301,10 +301,10 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView {
this.isGroupByFavorites = isGroupByFavorites this.isGroupByFavorites = isGroupByFavorites
if (isSortByName) { if (isSortByName) {
viewModel.setQuery(Query.ByName(isGroupByType,isUnreadOnTop)) viewModel.setQuery(Query.ByName(isGroupByType, isUnreadOnTop))
changeSortByTitle(getString(R.string.msg_sort_by_name)) changeSortByTitle(getString(R.string.msg_sort_by_name))
} else { } else {
viewModel.setQuery(Query.ByActivity(isGroupByType,isUnreadOnTop)) viewModel.setQuery(Query.ByActivity(isGroupByType, isUnreadOnTop))
changeSortByTitle(getString(R.string.msg_sort_by_activity)) changeSortByTitle(getString(R.string.msg_sort_by_activity))
} }
} }
...@@ -324,7 +324,7 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView { ...@@ -324,7 +324,7 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView {
private fun showAllChats() { private fun showAllChats() {
if (isSortByName) { if (isSortByName) {
viewModel.setQuery(Query.ByName(isGroupByType,isUnreadOnTop)) viewModel.setQuery(Query.ByName(isGroupByType, isUnreadOnTop))
} else { } else {
viewModel.setQuery(Query.ByActivity(isGroupByType, isUnreadOnTop)) viewModel.setQuery(Query.ByActivity(isGroupByType, isUnreadOnTop))
} }
......
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