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

Update RoomDialogFragment.kt

parent 28da0cb6
...@@ -91,7 +91,6 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View { ...@@ -91,7 +91,6 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View {
} }
override fun showFileList(dataSet: ArrayList<String>) { override fun showFileList(dataSet: ArrayList<String>) {
activity.runOnUiThread({
if (dataSet.isEmpty()) { if (dataSet.isEmpty()) {
// TODO("move to strings.xml") // TODO("move to strings.xml")
showMessage("None file to show") showMessage("None file to show")
...@@ -99,11 +98,9 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View { ...@@ -99,11 +98,9 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View {
recyclerView.adapter = RoomFileListAdapter(dataSet) recyclerView.adapter = RoomFileListAdapter(dataSet)
recyclerView.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, true) recyclerView.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, true)
} }
})
} }
override fun showMemberList(dataSet: ArrayList<String>) { override fun showMemberList(dataSet: ArrayList<String>) {
activity.runOnUiThread({
if (dataSet.isEmpty()) { if (dataSet.isEmpty()) {
// TODO("move to strings.xml") // TODO("move to strings.xml")
showMessage("None member to show") showMessage("None member to show")
...@@ -111,7 +108,6 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View { ...@@ -111,7 +108,6 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View {
recyclerView.adapter = RoomMemberListAdapter(dataSet) recyclerView.adapter = RoomMemberListAdapter(dataSet)
recyclerView.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, true) recyclerView.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, true)
} }
})
} }
override fun showMessage(message: String) { override fun showMessage(message: String) {
......
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