mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 04:28:35 +00:00
Fix bugs with RTL languages and showing/entering backup code.
Fixes #10193 Fixes #10195
This commit is contained in:
@@ -205,7 +205,7 @@ public class BackupUtil {
|
||||
new SecureRandom().nextBytes(random);
|
||||
|
||||
for (int i=0;i<30;i+=5) {
|
||||
result[i/5] = String.format("%05d", ByteUtil.byteArray5ToLong(random, i) % 100000);
|
||||
result[i/5] = String.format(Locale.ENGLISH, "%05d", ByteUtil.byteArray5ToLong(random, i) % 100000);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
android:focusable="true">
|
||||
|
||||
<TableRow android:gravity="center_horizontal"
|
||||
android:layoutDirection="ltr"
|
||||
android:clickable="false"
|
||||
android:focusable="false">
|
||||
|
||||
@@ -46,7 +47,9 @@
|
||||
tools:text="42738" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow android:gravity="center_horizontal">
|
||||
<TableRow android:gravity="center_horizontal"
|
||||
android:layoutDirection="ltr">
|
||||
|
||||
<TextView android:id="@+id/code_fourth"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
<TableRow
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
android:layoutDirection="ltr"
|
||||
android:gravity="center_horizontal">
|
||||
|
||||
<TextView
|
||||
@@ -75,7 +76,8 @@
|
||||
tools:text="42738" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow android:gravity="center_horizontal">
|
||||
<TableRow android:gravity="center_horizontal"
|
||||
android:layoutDirection="ltr">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/code_fourth"
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
android:id="@+id/restore_passphrase_input"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layoutDirection="ltr"
|
||||
android:fontFamily="monospace"
|
||||
android:hint="@string/enter_backup_passphrase_dialog__backup_passphrase"
|
||||
android:imeOptions="actionDone"
|
||||
|
||||
Reference in New Issue
Block a user