1
0
Fork 0

Updates the hide and reveal password icons to use and tint the mozac version.

master
Kadeem 2020-02-03 10:12:42 -05:00 committed by Jeff Boek
parent 6b2bf2acb8
commit 321251c49c
4 changed files with 4 additions and 36 deletions

View File

@ -78,12 +78,12 @@ class SavedLoginSiteInfoFragment : Fragment(R.layout.fragment_saved_login_site_i
private fun togglePasswordReveal() {
if (passwordInfoText.inputType == InputType.TYPE_TEXT_VARIATION_PASSWORD or InputType.TYPE_CLASS_TEXT) {
context?.components?.analytics?.metrics?.track(Event.ViewLoginPassword)
revealPasswordItem.setImageDrawable(context?.getDrawable(R.drawable.ic_password_hide))
revealPasswordItem.setImageDrawable(context?.getDrawable(R.drawable.mozac_ic_password_hide))
passwordInfoText.inputType = InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD
revealPasswordItem.contentDescription =
context?.getString(R.string.saved_login_hide_password)
} else {
revealPasswordItem.setImageDrawable(context?.getDrawable(R.drawable.ic_password_reveal))
revealPasswordItem.setImageDrawable(context?.getDrawable(R.drawable.mozac_ic_password_reveal))
passwordInfoText.inputType =
InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_PASSWORD
revealPasswordItem.contentDescription =

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -111,11 +111,12 @@
android:layout_height="48dp"
android:layout_marginEnd="16dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:tint="?android:colorAccent"
android:contentDescription="@string/saved_login_reveal_password"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/copyPasswordItem"
app:layout_constraintTop_toBottomOf="@id/copyUsernameItem"
app:srcCompat="@drawable/ic_password_reveal" />
app:srcCompat="@drawable/mozac_ic_password_reveal" />
<ImageButton
android:id="@+id/copyPasswordItem"