Commit 566da739 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

RoomDialogFragment.kt

parent c282e5b6
...@@ -18,7 +18,6 @@ import chat.rocket.android.layouthelper.chatroom.dialog.RoomMemberListAdapter ...@@ -18,7 +18,6 @@ import chat.rocket.android.layouthelper.chatroom.dialog.RoomMemberListAdapter
*/ */
class RoomDialogFragment : DialogFragment(), RoomDialogContract.View { class RoomDialogFragment : DialogFragment(), RoomDialogContract.View {
lateinit var roomId: String lateinit var roomId: String
lateinit var roomName: String
lateinit var roomType: String lateinit var roomType: String
lateinit var hostname: String lateinit var hostname: String
lateinit var token: String lateinit var token: String
...@@ -31,7 +30,6 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View { ...@@ -31,7 +30,6 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View {
companion object { companion object {
fun newInstance(roomId: String, fun newInstance(roomId: String,
roomName: String,
roomType: String, roomType: String,
hostname: String, hostname: String,
token: String, token: String,
...@@ -39,7 +37,6 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View { ...@@ -39,7 +37,6 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View {
actionId: Int): RoomDialogFragment { actionId: Int): RoomDialogFragment {
val args = Bundle() val args = Bundle()
args.putString("roomId", roomId) args.putString("roomId", roomId)
args.putString("roomName", roomName)
args.putString("roomType", roomType) args.putString("roomType", roomType)
args.putString("hostname", hostname) args.putString("hostname", hostname)
args.putString("token", token) args.putString("token", token)
...@@ -56,7 +53,6 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View { ...@@ -56,7 +53,6 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
roomId = arguments.getString("roomId") roomId = arguments.getString("roomId")
roomName = arguments.getString("roomName")
roomType = arguments.getString("roomType") roomType = arguments.getString("roomType")
hostname = arguments.getString("hostname") hostname = arguments.getString("hostname")
token = arguments.getString("token") token = arguments.getString("token")
...@@ -79,7 +75,13 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View { ...@@ -79,7 +75,13 @@ class RoomDialogFragment : DialogFragment(), RoomDialogContract.View {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState) super.onViewCreated(view, savedInstanceState)
presenter.getDataSet(roomId, roomName, roomType, hostname, token, userId, actionId)
presenter.getDataSet(roomId,
roomType,
hostname,
token,
userId,
actionId)
} }
override fun showPinnedMessages() { override fun showPinnedMessages() {
......
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