Code review fixes.

This commit is contained in:
Onuray Sahin 2022-11-22 16:11:20 +03:00
parent ab749eee6a
commit 5eb786b55f
2 changed files with 1 additions and 3 deletions

View file

@ -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) {

View file

@ -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