mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Cleanup recyclerview.
This commit is contained in:
parent
ec85199250
commit
357a859cdc
@ -21,6 +21,7 @@ import android.util.AttributeSet
|
||||
import androidx.constraintlayout.widget.ConstraintLayout
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import im.vector.app.R
|
||||
import im.vector.app.core.extensions.cleanup
|
||||
import im.vector.app.core.extensions.configureWith
|
||||
import im.vector.app.databinding.ViewOtherSessionsBinding
|
||||
import im.vector.app.features.settings.devices.DeviceFullInfo
|
||||
@ -47,4 +48,9 @@ class OtherSessionsView @JvmOverloads constructor(
|
||||
views.otherSessionsViewAllButton.text = context.getString(R.string.device_manager_other_sessions_view_all, devices.size)
|
||||
otherSessionsController.setData(devices)
|
||||
}
|
||||
|
||||
override fun onDetachedFromWindow() {
|
||||
views.otherSessionsRecyclerView.cleanup()
|
||||
super.onDetachedFromWindow()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user