mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Removes params passed into HomeRoomListFragment and fixes lint error
This commit is contained in:
parent
f94aad65dd
commit
ddaf5397b1
2 changed files with 1 additions and 5 deletions
|
@ -31,7 +31,6 @@ import com.google.android.material.badge.BadgeDrawable
|
||||||
import im.vector.app.R
|
import im.vector.app.R
|
||||||
import im.vector.app.SpaceStateHandler
|
import im.vector.app.SpaceStateHandler
|
||||||
import im.vector.app.core.extensions.commitTransaction
|
import im.vector.app.core.extensions.commitTransaction
|
||||||
import im.vector.app.core.extensions.toMvRxBundle
|
|
||||||
import im.vector.app.core.platform.OnBackPressed
|
import im.vector.app.core.platform.OnBackPressed
|
||||||
import im.vector.app.core.platform.VectorBaseActivity
|
import im.vector.app.core.platform.VectorBaseActivity
|
||||||
import im.vector.app.core.platform.VectorBaseFragment
|
import im.vector.app.core.platform.VectorBaseFragment
|
||||||
|
@ -45,7 +44,6 @@ import im.vector.app.features.call.SharedKnownCallsViewModel
|
||||||
import im.vector.app.features.call.VectorCallActivity
|
import im.vector.app.features.call.VectorCallActivity
|
||||||
import im.vector.app.features.call.dialpad.DialPadFragment
|
import im.vector.app.features.call.dialpad.DialPadFragment
|
||||||
import im.vector.app.features.call.webrtc.WebRtcCallManager
|
import im.vector.app.features.call.webrtc.WebRtcCallManager
|
||||||
import im.vector.app.features.home.room.list.RoomListParams
|
|
||||||
import im.vector.app.features.home.room.list.home.HomeRoomListFragment
|
import im.vector.app.features.home.room.list.home.HomeRoomListFragment
|
||||||
import im.vector.app.features.popup.PopupAlertManager
|
import im.vector.app.features.popup.PopupAlertManager
|
||||||
import im.vector.app.features.popup.VerificationVectorAlert
|
import im.vector.app.features.popup.VerificationVectorAlert
|
||||||
|
@ -339,8 +337,7 @@ class NewHomeDetailFragment @Inject constructor(
|
||||||
if (fragmentToShow == null) {
|
if (fragmentToShow == null) {
|
||||||
when (tab) {
|
when (tab) {
|
||||||
is HomeTab.RoomList -> {
|
is HomeTab.RoomList -> {
|
||||||
val params = RoomListParams(tab.displayMode)
|
add(R.id.roomListContainer, HomeRoomListFragment::class.java, null, fragmentTag)
|
||||||
add(R.id.roomListContainer, HomeRoomListFragment::class.java, params.toMvRxBundle(), fragmentTag)
|
|
||||||
}
|
}
|
||||||
is HomeTab.DialPad -> {
|
is HomeTab.DialPad -> {
|
||||||
add(R.id.roomListContainer, createDialPadFragment(), fragmentTag)
|
add(R.id.roomListContainer, createDialPadFragment(), fragmentTag)
|
||||||
|
|
|
@ -205,7 +205,6 @@ class HomeRoomListFragment @Inject constructor(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private fun promptLeaveRoom(roomId: String) {
|
private fun promptLeaveRoom(roomId: String) {
|
||||||
val isPublicRoom = roomListViewModel.isPublicRoom(roomId)
|
val isPublicRoom = roomListViewModel.isPublicRoom(roomId)
|
||||||
val message = buildString {
|
val message = buildString {
|
||||||
|
|
Loading…
Reference in a new issue