mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 19:59:05 +01:00
Show QR code by default instead of link
This commit is contained in:
9
briar-android/src/main/res/drawable/ic_qr_code.xml
Normal file
9
briar-android/src/main/res/drawable/ic_qr_code.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportHeight="24"
|
||||
android:viewportWidth="24">
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M3,11H5V13H3V11M11,5H13V9H11V5M9,11H13V15H11V13H9V11M15,11H17V13H19V11H21V13H19V15H21V19H19V21H17V19H13V21H11V17H15V15H17V13H15V11M19,19V15H17V19H19M15,3H21V9H15V3M17,5V7H19V5H17M3,3H9V9H3V3M5,5V7H7V5H5M3,15H9V21H3V15M5,17V19H7V17H5Z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.constraint.ConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/linkIntro"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_margin="@dimen/margin_large"
|
||||
android:text="@string/send_code_instructions"
|
||||
android:textIsSelectable="true"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintBottom_toTopOf="@id/qrCodeView"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_weight="1"
|
||||
tools:visibility="visible"/>
|
||||
|
||||
<org.briarproject.briar.android.view.QrCodeView
|
||||
android:id="@+id/qrCodeView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:background="@android:color/white"
|
||||
android:textIsSelectable="true"
|
||||
android:textSize="18sp"
|
||||
android:typeface="monospace"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/linkIntro"
|
||||
app:layout_constraintVertical_weight="1"/>
|
||||
|
||||
</android.support.constraint.ConstraintLayout>
|
||||
@@ -14,11 +14,17 @@
|
||||
android:icon="@drawable/ic_link"
|
||||
android:title="@string/open_link_title"
|
||||
app:showAsAction="never"/>
|
||||
|
||||
<!--
|
||||
<item
|
||||
android:id="@+id/action_send_link"
|
||||
android:icon="@drawable/ic_link"
|
||||
android:title="@string/send_link_title"
|
||||
app:showAsAction="never"/>
|
||||
-->
|
||||
<item
|
||||
android:id="@+id/action_send_link"
|
||||
android:icon="@drawable/ic_qr_code"
|
||||
android:title="@string/send_code_title"
|
||||
app:showAsAction="never"/>
|
||||
|
||||
</menu>
|
||||
11
briar-android/src/main/res/menu/contact_output_actions.xml
Normal file
11
briar-android/src/main/res/menu/contact_output_actions.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_switch"
|
||||
android:title="@string/show_link"
|
||||
app:showAsAction="never"/>
|
||||
|
||||
</menu>
|
||||
@@ -153,6 +153,9 @@
|
||||
<string name="add_contact_nearby_title">Add Contact Nearby</string>
|
||||
<string name="open_link_title">Open Link</string>
|
||||
<string name="send_link_title">Send My Link</string>
|
||||
<string name="send_code_title">Send My QR Code</string>
|
||||
<string name="show_link">Show Link</string>
|
||||
<string name="show_code">Show QR code</string>
|
||||
<string name="contact_name_hint">Contact name</string>
|
||||
<string name="contact_link_hint">Contact link</string>
|
||||
<string name="paste_button">Paste</string>
|
||||
@@ -160,6 +163,7 @@
|
||||
<string name="share_button">Share</string>
|
||||
<string name="copy_button">Copy</string>
|
||||
<string name="send_link_instructions">Send this link to your contact:</string>
|
||||
<string name="send_code_instructions">Let your contact scan this QR code with Briar:</string>
|
||||
<string name="link_clip_label">Briar link</string>
|
||||
<string name="link_copied_toast">Link copied</string>
|
||||
<string name="pending_contact_requests_snackbar">"There are pending contact requests"</string>
|
||||
|
||||
Reference in New Issue
Block a user