Rename class
This commit is contained in:
parent
b935a6557f
commit
6af879fe2a
|
@ -39,7 +39,7 @@ data class DeviceVerificationInfoArgs(
|
|||
val deviceId: String
|
||||
) : Parcelable
|
||||
|
||||
class DeviceVerificationInfoBottomSheet : VectorBaseBottomSheetDialogFragment(), DeviceVerificationInfoEpoxyController.Callback {
|
||||
class DeviceVerificationInfoBottomSheet : VectorBaseBottomSheetDialogFragment(), DeviceVerificationInfoBottomSheetController.Callback {
|
||||
|
||||
private val viewModel: DeviceVerificationInfoBottomSheetViewModel by fragmentViewModel(DeviceVerificationInfoBottomSheetViewModel::class)
|
||||
|
||||
|
@ -54,17 +54,17 @@ class DeviceVerificationInfoBottomSheet : VectorBaseBottomSheetDialogFragment(),
|
|||
injector.inject(this)
|
||||
}
|
||||
|
||||
@Inject lateinit var epoxyController: DeviceVerificationInfoEpoxyController
|
||||
@Inject lateinit var controller: DeviceVerificationInfoBottomSheetController
|
||||
|
||||
override fun getLayoutResId() = R.layout.bottom_sheet_generic_list_with_title
|
||||
|
||||
override fun onActivityCreated(savedInstanceState: Bundle?) {
|
||||
super.onActivityCreated(savedInstanceState)
|
||||
recyclerView.configureWith(
|
||||
epoxyController,
|
||||
controller,
|
||||
showDivider = false,
|
||||
hasFixedSize = false)
|
||||
epoxyController.callback = this
|
||||
controller.callback = this
|
||||
bottomSheetTitle.isVisible = false
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@ class DeviceVerificationInfoBottomSheet : VectorBaseBottomSheetDialogFragment(),
|
|||
}
|
||||
|
||||
override fun invalidate() = withState(viewModel) {
|
||||
epoxyController.setData(it)
|
||||
controller.setData(it)
|
||||
super.invalidate()
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ import im.vector.app.features.crypto.verification.epoxy.bottomSheetVerificationA
|
|||
import timber.log.Timber
|
||||
import javax.inject.Inject
|
||||
|
||||
class DeviceVerificationInfoEpoxyController @Inject constructor(private val stringProvider: StringProvider,
|
||||
class DeviceVerificationInfoBottomSheetController @Inject constructor(private val stringProvider: StringProvider,
|
||||
private val colorProvider: ColorProvider,
|
||||
private val session: Session)
|
||||
: TypedEpoxyController<DeviceVerificationInfoBottomSheetViewState>() {
|
|
@ -19,8 +19,8 @@ package im.vector.app.features.settings.devices
|
|||
import com.airbnb.mvrx.Async
|
||||
import com.airbnb.mvrx.MvRxState
|
||||
import com.airbnb.mvrx.Uninitialized
|
||||
import im.vector.matrix.android.internal.crypto.model.CryptoDeviceInfo
|
||||
import im.vector.matrix.android.internal.crypto.model.rest.DeviceInfo
|
||||
import org.matrix.android.sdk.internal.crypto.model.CryptoDeviceInfo
|
||||
import org.matrix.android.sdk.internal.crypto.model.rest.DeviceInfo
|
||||
|
||||
data class DeviceVerificationInfoBottomSheetViewState(
|
||||
val cryptoDeviceInfo: Async<CryptoDeviceInfo?> = Uninitialized,
|
||||
|
|
Loading…
Reference in New Issue