mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Update edit text fields for pins.
This commit is contained in:
@@ -275,6 +275,7 @@ class ChangeNumberRegistrationLockFragment : LoggingFragment(R.layout.fragment_c
|
||||
private fun enableAndFocusPinEntry() {
|
||||
binding.kbsLockPinInput.setEnabled(true)
|
||||
binding.kbsLockPinInput.setFocusable(true)
|
||||
binding.kbsLockPinInput.transformationMethod = PasswordTransformationMethod.getInstance()
|
||||
ViewUtil.focusAndShowKeyboard(binding.kbsLockPinInput)
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,6 @@ public class PinRestoreEntryFragment extends LoggingFragment {
|
||||
}
|
||||
return false;
|
||||
});
|
||||
ViewCompat.setAutofillHints(pinEntry, HintConstants.AUTOFILL_HINT_PASSWORD);
|
||||
|
||||
enableAndFocusPinEntry();
|
||||
|
||||
@@ -263,7 +262,7 @@ public class PinRestoreEntryFragment extends LoggingFragment {
|
||||
private void updateKeyboard(@NonNull PinKeyboardType keyboard) {
|
||||
boolean isAlphaNumeric = keyboard == PinKeyboardType.ALPHA_NUMERIC;
|
||||
|
||||
pinEntry.setInputType(isAlphaNumeric ? InputType.TYPE_CLASS_TEXT : InputType.TYPE_CLASS_NUMBER );
|
||||
pinEntry.setInputType(isAlphaNumeric ? InputType.TYPE_CLASS_TEXT : InputType.TYPE_CLASS_NUMBER);
|
||||
pinEntry.setTransformationMethod(PasswordTransformationMethod.getInstance());
|
||||
|
||||
pinEntry.getText().clear();
|
||||
@@ -272,6 +271,7 @@ public class PinRestoreEntryFragment extends LoggingFragment {
|
||||
private void enableAndFocusPinEntry() {
|
||||
pinEntry.setEnabled(true);
|
||||
pinEntry.setFocusable(true);
|
||||
pinEntry.setTransformationMethod(PasswordTransformationMethod.getInstance());
|
||||
ViewUtil.focusAndShowKeyboard(pinEntry);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -263,6 +263,7 @@ class RegistrationLockFragment : LoggingFragment(R.layout.fragment_registration_
|
||||
private fun enableAndFocusPinEntry() {
|
||||
binding.kbsLockPinInput.setEnabled(true)
|
||||
binding.kbsLockPinInput.setFocusable(true)
|
||||
binding.kbsLockPinInput.transformationMethod = PasswordTransformationMethod.getInstance()
|
||||
ViewUtil.focusAndShowKeyboard(binding.kbsLockPinInput)
|
||||
}
|
||||
|
||||
|
||||
@@ -192,6 +192,7 @@ class ReRegisterWithPinFragment : LoggingFragment(R.layout.fragment_registration
|
||||
private fun enableAndFocusPinEntry() {
|
||||
binding.pinRestorePinInput.isEnabled = true
|
||||
binding.pinRestorePinInput.isFocusable = true
|
||||
binding.pinRestorePinInput.transformationMethod = PasswordTransformationMethod.getInstance()
|
||||
ViewUtil.focusAndShowKeyboard(binding.pinRestorePinInput)
|
||||
}
|
||||
|
||||
|
||||
@@ -263,6 +263,7 @@ class RegistrationLockFragment : LoggingFragment(R.layout.fragment_registration_
|
||||
private fun enableAndFocusPinEntry() {
|
||||
binding.kbsLockPinInput.setEnabled(true)
|
||||
binding.kbsLockPinInput.setFocusable(true)
|
||||
binding.kbsLockPinInput.transformationMethod = PasswordTransformationMethod.getInstance()
|
||||
ViewUtil.focusAndShowKeyboard(binding.kbsLockPinInput)
|
||||
}
|
||||
|
||||
|
||||
@@ -193,6 +193,7 @@ class ReRegisterWithPinFragment : LoggingFragment(R.layout.fragment_registration
|
||||
private fun enableAndFocusPinEntry() {
|
||||
binding.pinRestorePinInput.isEnabled = true
|
||||
binding.pinRestorePinInput.isFocusable = true
|
||||
binding.pinRestorePinInput.transformationMethod = PasswordTransformationMethod.getInstance()
|
||||
ViewUtil.focusAndShowKeyboard(binding.pinRestorePinInput)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user