Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xx Messenger Android
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
android
xx Messenger Android
Commits
994fdbdf
Commit
994fdbdf
authored
2 years ago
by
Kamal Bramwell
Browse files
Options
Downloads
Patches
Plain Diff
Added password visibility toggle for sensitive TextInputDialog
parent
f8535d3e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/io/xxlabs/messenger/ui/dialog/textinput/TextInputDialog.kt
+3
-2
3 additions, 2 deletions
...o/xxlabs/messenger/ui/dialog/textinput/TextInputDialog.kt
with
3 additions
and
2 deletions
app/src/main/java/io/xxlabs/messenger/ui/dialog/textinput/TextInputDialog.kt
+
3
−
2
View file @
994fdbdf
...
@@ -14,6 +14,7 @@ import android.view.ViewGroup
...
@@ -14,6 +14,7 @@ import android.view.ViewGroup
import
androidx.databinding.DataBindingUtil
import
androidx.databinding.DataBindingUtil
import
com.google.android.material.bottomsheet.BottomSheetBehavior
import
com.google.android.material.bottomsheet.BottomSheetBehavior
import
com.google.android.material.bottomsheet.BottomSheetDialog
import
com.google.android.material.bottomsheet.BottomSheetDialog
import
com.google.android.material.textfield.TextInputLayout
import
io.xxlabs.messenger.R
import
io.xxlabs.messenger.R
import
io.xxlabs.messenger.databinding.ComponentTextinputDialogBinding
import
io.xxlabs.messenger.databinding.ComponentTextinputDialogBinding
import
io.xxlabs.messenger.support.view.XxBottomSheetDialog
import
io.xxlabs.messenger.support.view.XxBottomSheetDialog
...
@@ -58,8 +59,8 @@ class TextInputDialog : XxBottomSheetDialog() {
...
@@ -58,8 +59,8 @@ class TextInputDialog : XxBottomSheetDialog() {
private
fun
setInputPrivacy
()
{
private
fun
setInputPrivacy
()
{
if
(
isSensitive
)
{
if
(
isSensitive
)
{
binding
.
edittextDialogTextInput
.
editText
?.
apply
{
binding
.
edittextDialogTextInput
.
apply
{
inputType
=
InputType
.
TYPE_CLASS_TEXT
or
InputType
.
TYPE_TEXT_VARIATI
ON_PASSWORD
endIconMode
=
TextInputLayout
.
END_IC
ON_PASSWORD
_TOGGLE
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment