mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-23 08:36:20 +00:00
Manually restrict to 30 digits to allow pasting containing any number of spaces.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user