|
|
@ -9,6 +9,7 @@ import androidx.core.view.isVisible
|
|
|
|
import org.mozilla.fenix.databinding.LoginsItemBinding
|
|
|
|
import org.mozilla.fenix.databinding.LoginsItemBinding
|
|
|
|
import org.mozilla.fenix.ext.components
|
|
|
|
import org.mozilla.fenix.ext.components
|
|
|
|
import org.mozilla.fenix.ext.loadIntoView
|
|
|
|
import org.mozilla.fenix.ext.loadIntoView
|
|
|
|
|
|
|
|
import org.mozilla.fenix.ext.simplifiedUrl
|
|
|
|
import org.mozilla.fenix.settings.logins.SavedLogin
|
|
|
|
import org.mozilla.fenix.settings.logins.SavedLogin
|
|
|
|
import org.mozilla.fenix.settings.logins.interactor.SavedLoginsInteractor
|
|
|
|
import org.mozilla.fenix.settings.logins.interactor.SavedLoginsInteractor
|
|
|
|
import org.mozilla.fenix.utils.view.ViewHolder
|
|
|
|
import org.mozilla.fenix.utils.view.ViewHolder
|
|
|
@ -29,7 +30,7 @@ class LoginsListViewHolder(
|
|
|
|
timeLastUsed = item.timeLastUsed,
|
|
|
|
timeLastUsed = item.timeLastUsed,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
val binding = LoginsItemBinding.bind(view)
|
|
|
|
val binding = LoginsItemBinding.bind(view)
|
|
|
|
binding.webAddressView.text = item.origin
|
|
|
|
binding.webAddressView.text = item.origin.simplifiedUrl()
|
|
|
|
binding.usernameView.isVisible = item.username.isNotEmpty()
|
|
|
|
binding.usernameView.isVisible = item.username.isNotEmpty()
|
|
|
|
binding.usernameView.text = item.username
|
|
|
|
binding.usernameView.text = item.username
|
|
|
|
|
|
|
|
|
|
|
|