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 {
}
override fun showFileList(dataSet: ArrayList<String>) {
activity.runOnUiThread({
if (dataSet.isEmpty()) {
// TODO("move to strings.xml")
showMessage("None file to show")
} else {
recyclerView.adapter = RoomFileListAdapter(dataSet)
recyclerView.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, true)
}
})
if (dataSet.isEmpty()) {
// TODO("move to strings.xml")
showMessage("None file to show")
} else {
recyclerView.adapter = RoomFileListAdapter(dataSet)
recyclerView.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, true)
}
}
override fun showMemberList(dataSet: ArrayList<String>) {
activity.runOnUiThread({
if (dataSet.isEmpty()) {
// TODO("move to strings.xml")
showMessage("None member to show")
} else {
recyclerView.adapter = RoomMemberListAdapter(dataSet)
recyclerView.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, true)
}
})
if (dataSet.isEmpty()) {
// TODO("move to strings.xml")
showMessage("None member to show")
} else {
recyclerView.adapter = RoomMemberListAdapter(dataSet)
recyclerView.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, true)
}
}
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