mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 03:48:12 +03:00
Code review fixes.
This commit is contained in:
parent
ab749eee6a
commit
5eb786b55f
2 changed files with 1 additions and 3 deletions
|
@ -188,8 +188,7 @@ class SessionInfoView @JvmOverloads constructor(
|
|||
} else {
|
||||
views.sessionInfoLastActivityTextView.isGone = true
|
||||
}
|
||||
views.sessionInfoLastIPAddressTextView.setTextOrHide(deviceInfo.lastSeenIp?.takeIf { isLastSeenDetailsVisible })
|
||||
views.sessionInfoLastIPAddressTextView.isVisible = isShowingIpAddress
|
||||
views.sessionInfoLastIPAddressTextView.setTextOrHide(deviceInfo.lastSeenIp?.takeIf { isLastSeenDetailsVisible && isShowingIpAddress })
|
||||
}
|
||||
|
||||
private fun renderDetailsButton(isDetailsButtonVisible: Boolean) {
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
package im.vector.app.features.settings.devices.v2
|
||||
|
||||
import android.content.SharedPreferences
|
||||
import android.os.SystemClock
|
||||
import com.airbnb.mvrx.Success
|
||||
import com.airbnb.mvrx.test.MavericksTestRule
|
||||
|
|
Loading…
Reference in a new issue