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

Update RoomDialogFragment.kt

parent 28da0cb6
...@@ -91,27 +91,23 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View { ...@@ -91,27 +91,23 @@ 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") } else {
} else { 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") } else {
} else { 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