Added QR scanner to wallet send card #1194
Labels
No labels
android: closed alpha
android: open beta
app-parity
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
creator
Epic
good first issue
hacktoberfest
help wanted
icebox
Invalid
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
product review
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-android#1194
Loading…
Reference in a new issue
No description provided.
Delete branch "qr-scanner"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR Checklist
Please check all that apply to this PR using "x":
PR Type
What kind of change does this PR introduce?
Fixes
Issue Number: #202
What is the current behavior?
There is no QR scanner for sending funds to an address encoded as a QR code.
What is the new behavior?
In the Wallet's Send card, there is now QR scanning functionality which will fill the recipient address with the value the scanner gets.
Other information
The QR library (zxing 4.1.0) works on SDK 24 and up, but I added a 'fallback' for 3.3.0 as they advise so the minimum SDK of 21 should still work and be able to use the functionality. I was not, however, able to test this on any devices with that SDK version.
Not a formal review, but these code style changes would be required
Revert this change
Revert the changes on these lines
Revert the change on this last line 824
@ -0,0 +5,4 @@
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
Have you tested this on a device or emulator on dark theme mode?
Thanks so much for the PR! We'll get another closer review on it soon.
Can we show you some appreciation?
@ -0,0 +5,4 @@
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
I have tested it on Android 8.1. That API Level doesn't support dark mode, but enabling dark mode on app settings does the same.
Button image is still visible, so this conversation can be resolved.
I have tested this. It works as expected. I does decode a LBRY Credits address and writes it on the expected field.
In order to test this, it was needed to merge changes from master branch. The parent commit PR author branched from was using a repository for AAR which is no longer working. That was fixed on master. After merging master into PR branch, this will build without a problem.