Change password: lambda
This commit is contained in:
parent
d44e43d94b
commit
7bf1f916c4
|
@ -690,8 +690,7 @@ class VectorSettingsGeneralFragment : VectorSettingsBaseFragment() {
|
||||||
|
|
||||||
var passwordShown = false
|
var passwordShown = false
|
||||||
|
|
||||||
showPassword.setOnClickListener(object : View.OnClickListener {
|
showPassword.setOnClickListener {
|
||||||
override fun onClick(v: View?) {
|
|
||||||
passwordShown = !passwordShown
|
passwordShown = !passwordShown
|
||||||
|
|
||||||
oldPasswordText.showPassword(passwordShown)
|
oldPasswordText.showPassword(passwordShown)
|
||||||
|
@ -700,7 +699,6 @@ class VectorSettingsGeneralFragment : VectorSettingsBaseFragment() {
|
||||||
|
|
||||||
showPassword.setImageResource(if (passwordShown) R.drawable.ic_eye_closed_black else R.drawable.ic_eye_black)
|
showPassword.setImageResource(if (passwordShown) R.drawable.ic_eye_closed_black else R.drawable.ic_eye_black)
|
||||||
}
|
}
|
||||||
})
|
|
||||||
|
|
||||||
val dialog = AlertDialog.Builder(activity)
|
val dialog = AlertDialog.Builder(activity)
|
||||||
.setView(view)
|
.setView(view)
|
||||||
|
|
Loading…
Reference in New Issue