mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 05:58:34 +00:00
Manually restrict to 30 digits to allow pasting containing any number of spaces.
This commit is contained in:
parent
b42c42007d
commit
064c0ddb82
@ -16,7 +16,6 @@
|
||||
android:hint="@string/enter_backup_passphrase_dialog__backup_passphrase"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="number"
|
||||
android:maxLength="35"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
@ -302,6 +302,10 @@ public final class RestoreBackupFragment extends BaseRegistrationFragment {
|
||||
for (int i = GROUP_SIZE; i < length; i += GROUP_SIZE) {
|
||||
editable.setSpan(new SpaceSpan(), i - 1, i, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
}
|
||||
|
||||
if (editable.length() > 30) {
|
||||
editable.delete(30, editable.length());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user