Commit 8745f233 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Few refactorings

parent 6a1f37b7
...@@ -80,14 +80,9 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView { ...@@ -80,14 +80,9 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView {
override fun onQueryTextChange(newText: String?): Boolean { override fun onQueryTextChange(newText: String?): Boolean {
return queryChatRoomsByName(newText) return queryChatRoomsByName(newText)
} }
}) })
} }
/*override fun showChatRooms(dataSet: MutableList<ChatRoom>) {
floating_search_view.hideProgress()
}*/
override suspend fun updateChatRooms(newDataSet: List<ChatRoom>) { override suspend fun updateChatRooms(newDataSet: List<ChatRoom>) {
activity.apply { activity.apply {
launch(UI) { launch(UI) {
......
...@@ -20,19 +20,6 @@ ...@@ -20,19 +20,6 @@
android:gravity="center_horizontal" android:gravity="center_horizontal"
app:layout_behavior="@string/appbar_scrolling_view_behavior" /> app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<!--<com.arlib.floatingsearchview.FloatingSearchView-->
<!--android:id="@+id/floating_search_view"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content"-->
<!--app:floatingSearch_close_search_on_keyboard_dismiss="true"-->
<!--app:floatingSearch_dimBackground="false"-->
<!--app:floatingSearch_dismissOnOutsideTouch="true"-->
<!--app:floatingSearch_leftActionMode="showSearch"-->
<!--app:floatingSearch_searchBarMarginLeft="4dp"-->
<!--app:floatingSearch_searchBarMarginRight="4dp"-->
<!--app:floatingSearch_searchBarMarginTop="28dp" />-->
<com.wang.avi.AVLoadingIndicatorView <com.wang.avi.AVLoadingIndicatorView
android:id="@+id/view_loading" android:id="@+id/view_loading"
android:layout_width="wrap_content" android:layout_width="wrap_content"
......
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