mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Improve UI for showing qr code
This commit is contained in:
@@ -134,13 +134,13 @@ public class OwnerReturnShardFragment extends BaseFragment
|
||||
private void onReturnShardStateChanged(
|
||||
@Nullable SecretOwnerTask.State state) {
|
||||
if (state instanceof SecretOwnerTask.State.Listening) {
|
||||
status.setText(R.string.waiting_for_contact_to_scan);
|
||||
Bitmap qrCode = viewModel.getQrCodeBitmap();
|
||||
qrCodeView.setQrCode(qrCode);
|
||||
} else if (state instanceof SecretOwnerTask.State.ReceivingShard) {
|
||||
statusView.setVisibility(VISIBLE);
|
||||
status.setText(R.string.connecting_to_device);
|
||||
} else if (state instanceof SecretOwnerTask.State.SendingAck) {
|
||||
status.setText(R.string.waiting_for_contact_to_scan);
|
||||
status.setText(R.string.recovery_sending_ack);
|
||||
} else if (state instanceof SecretOwnerTask.State.Success) {
|
||||
status.setText("Success");
|
||||
} else if (state instanceof SecretOwnerTask.State.Failure) {
|
||||
|
||||
@@ -28,18 +28,19 @@
|
||||
android:visibility="visible"
|
||||
tools:visibility="visible">
|
||||
|
||||
<ProgressBar
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
<!-- <ProgressBar-->
|
||||
<!-- style="?android:attr/progressBarStyleLarge"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content" />-->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/connect_status"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:paddingTop="@dimen/margin_large"
|
||||
tools:text="@string/waiting_for_contact_to_scan" />
|
||||
<TextView
|
||||
android:id="@+id/connect_status"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:paddingTop="@dimen/margin_large"
|
||||
android:textSize="20sp"
|
||||
android:text="@string/waiting_for_contact_to_scan" />
|
||||
</LinearLayout>
|
||||
|
||||
<org.briarproject.briar.android.view.QrCodeView
|
||||
|
||||
@@ -687,6 +687,7 @@
|
||||
<string name="recovery_shard_received">Account backup piece received</string>
|
||||
<string name="recovery_account_recovered">Account recovered</string>
|
||||
<string name="recovery_account_recovered_explain">You must now set a new password for your account</string>
|
||||
<string name="recovery_sending_ack">Sending acknowledgement</string>
|
||||
|
||||
<!-- recovery from the custodian's POV -->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user