mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 05:39:53 +01:00
Improve QR code workflow slightly
* Improve wording so contacts know they need meet up to scan and scan each other's codes * Use consistent progress bar styles
This commit is contained in:
@@ -21,7 +21,6 @@
|
|||||||
android:id="@+id/imageView"
|
android:id="@+id/imageView"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="@dimen/margin_xlarge"
|
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/qr_code_intro"
|
android:src="@drawable/qr_code_intro"
|
||||||
@@ -42,7 +41,8 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:padding="@dimen/margin_medium"
|
android:padding="@dimen/margin_medium"
|
||||||
android:src="@drawable/qr_code_explanation"/>
|
android:src="@drawable/qr_code_explanation"
|
||||||
|
android:contentDescription="@string/face_to_face"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/BriarTextBody"
|
style="@style/BriarTextBody"
|
||||||
|
|||||||
@@ -33,9 +33,9 @@
|
|||||||
android:visibility="invisible">
|
android:visibility="invisible">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
style="?android:attr/progressBarStyleLarge"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"/>
|
||||||
android:paddingTop="@dimen/margin_large"/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/connect_status"
|
android:id="@+id/connect_status"
|
||||||
@@ -47,24 +47,25 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
<FrameLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@android:color/white">
|
android:background="@android:color/white">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
style="?android:attr/progressBarStyleLarge"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerInParent="true"
|
android:layout_gravity="center"/>
|
||||||
android:paddingTop="@dimen/margin_large"/>
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/qr_code"
|
android:id="@+id/qr_code"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:scaleType="fitCenter"/>
|
android:scaleType="fitCenter"
|
||||||
</RelativeLayout>
|
android:layout_gravity="center"/>
|
||||||
|
</FrameLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
@@ -79,17 +80,17 @@
|
|||||||
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"
|
||||||
android:layout_centerInParent="true"/>
|
android:layout_above="@+id/title_progress_bar"
|
||||||
|
android:layout_centerHorizontal="true"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/title_progress_bar"
|
android:id="@+id/title_progress_bar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@id/progress_bar"
|
android:layout_centerInParent="true"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:paddingTop="@dimen/margin_large"
|
android:paddingTop="@dimen/margin_large"
|
||||||
tools:text="progress bar title"
|
tools:text="@string/waiting_for_contact_to_scan"/>
|
||||||
/>
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
<!-- Adding Contacts -->
|
<!-- Adding Contacts -->
|
||||||
<string name="add_contact_title">Add a Contact</string>
|
<string name="add_contact_title">Add a Contact</string>
|
||||||
<string name="your_nickname">Choose the identity you want to use:</string>
|
<string name="your_nickname">Choose the identity you want to use:</string>
|
||||||
<string name="face_to_face">You must be face-to-face with the person you want to add as a contact. This will prevent anyone from impersonating you or reading your messages in future.</string>
|
<string name="face_to_face">You must meet up with the person you want to add as a contact.\n\nThis will prevent anyone from impersonating you or reading your messages in future.</string>
|
||||||
<string name="continue_button">Continue</string>
|
<string name="continue_button">Continue</string>
|
||||||
<string name="your_invitation_code">Your invitation code is</string>
|
<string name="your_invitation_code">Your invitation code is</string>
|
||||||
<string name="enter_invitation_code">Please enter your contact\'s invitation code:</string>
|
<string name="enter_invitation_code">Please enter your contact\'s invitation code:</string>
|
||||||
@@ -104,6 +104,7 @@
|
|||||||
<string name="your_confirmation_code">Your confirmation code is</string>
|
<string name="your_confirmation_code">Your confirmation code is</string>
|
||||||
<string name="enter_confirmation_code">Please enter your contact\'s confirmation code:</string>
|
<string name="enter_confirmation_code">Please enter your contact\'s confirmation code:</string>
|
||||||
<string name="waiting_for_contact">Waiting for contact\u2026</string>
|
<string name="waiting_for_contact">Waiting for contact\u2026</string>
|
||||||
|
<string name="waiting_for_contact_to_scan">Waiting for contact to scan and connect\u2026</string>
|
||||||
<string name="exchanging_contact_details">Exchanging contact details\u2026</string>
|
<string name="exchanging_contact_details">Exchanging contact details\u2026</string>
|
||||||
<string name="codes_do_not_match">Codes do not match</string>
|
<string name="codes_do_not_match">Codes do not match</string>
|
||||||
<string name="interfering">This could mean that someone is trying to interfere with your connection</string>
|
<string name="interfering">This could mean that someone is trying to interfere with your connection</string>
|
||||||
|
|||||||
@@ -337,7 +337,7 @@ public class ShowQrCodeFragment extends BaseEventFragment
|
|||||||
listener.runOnUiThreadUnlessDestroyed(new Runnable() {
|
listener.runOnUiThreadUnlessDestroyed(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
status.setText(R.string.waiting_for_contact);
|
status.setText(R.string.waiting_for_contact_to_scan);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user