mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 14:19:53 +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(
|
private void onReturnShardStateChanged(
|
||||||
@Nullable SecretOwnerTask.State state) {
|
@Nullable SecretOwnerTask.State state) {
|
||||||
if (state instanceof SecretOwnerTask.State.Listening) {
|
if (state instanceof SecretOwnerTask.State.Listening) {
|
||||||
|
status.setText(R.string.waiting_for_contact_to_scan);
|
||||||
Bitmap qrCode = viewModel.getQrCodeBitmap();
|
Bitmap qrCode = viewModel.getQrCodeBitmap();
|
||||||
qrCodeView.setQrCode(qrCode);
|
qrCodeView.setQrCode(qrCode);
|
||||||
} else if (state instanceof SecretOwnerTask.State.ReceivingShard) {
|
} else if (state instanceof SecretOwnerTask.State.ReceivingShard) {
|
||||||
statusView.setVisibility(VISIBLE);
|
|
||||||
status.setText(R.string.connecting_to_device);
|
status.setText(R.string.connecting_to_device);
|
||||||
} else if (state instanceof SecretOwnerTask.State.SendingAck) {
|
} 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) {
|
} else if (state instanceof SecretOwnerTask.State.Success) {
|
||||||
status.setText("Success");
|
status.setText("Success");
|
||||||
} else if (state instanceof SecretOwnerTask.State.Failure) {
|
} else if (state instanceof SecretOwnerTask.State.Failure) {
|
||||||
|
|||||||
@@ -28,18 +28,19 @@
|
|||||||
android:visibility="visible"
|
android:visibility="visible"
|
||||||
tools:visibility="visible">
|
tools:visibility="visible">
|
||||||
|
|
||||||
<ProgressBar
|
<!-- <ProgressBar-->
|
||||||
style="?android:attr/progressBarStyleLarge"
|
<!-- style="?android:attr/progressBarStyleLarge"-->
|
||||||
android:layout_width="wrap_content"
|
<!-- android:layout_width="wrap_content"-->
|
||||||
android:layout_height="wrap_content" />
|
<!-- android:layout_height="wrap_content" />-->
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/connect_status"
|
android:id="@+id/connect_status"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:paddingTop="@dimen/margin_large"
|
android:paddingTop="@dimen/margin_large"
|
||||||
tools:text="@string/waiting_for_contact_to_scan" />
|
android:textSize="20sp"
|
||||||
|
android:text="@string/waiting_for_contact_to_scan" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<org.briarproject.briar.android.view.QrCodeView
|
<org.briarproject.briar.android.view.QrCodeView
|
||||||
|
|||||||
@@ -687,6 +687,7 @@
|
|||||||
<string name="recovery_shard_received">Account backup piece received</string>
|
<string name="recovery_shard_received">Account backup piece received</string>
|
||||||
<string name="recovery_account_recovered">Account recovered</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_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 -->
|
<!-- recovery from the custodian's POV -->
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user