Files
arcanechat-android/res/menu/qr_show.xml
T
Asiel Díaz Benítez be56cb380e QR activities improvements (#2103)
* allow to copy QR data and to read QR data from clipboard

* add share option

* allow to scan QR from gallery

* use menu_copy_to_clipboard instead of menu_copy_link_to_clipboard

* use AttachmentManager

* reuse Bitmap

* change REQUEST_CODE_IMAGE value

* use getCacheDir()

* replace handleOpenPgp4Fpr with handleQrData

* show error message if scanning QR failed

* use Log.e() instead of Log.w()

* Revert "use getCacheDir()"

This reverts commit 2a2a801b311e7c4929f5063d3340234413528b93.

the impact of this change is eaasily larger than expected,
see comments at https://github.com/deltachat/deltachat-android/pull/2103

if needed, we can discuss and re-add that in a separate, more focused pr.

Co-authored-by: B. Petersen <r10s@b44t.com>
2021-11-04 12:26:32 +01:00

15 lines
468 B
XML

<?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:title="@string/menu_share"
android:id="@+id/share"
android:icon="@drawable/ic_share_white_24dp"
app:showAsAction="ifRoom"/>
<item android:title="@string/menu_copy_to_clipboard"
android:id="@+id/copy"
app:showAsAction="never"/>
</menu>