breadwallet / breadwallet-android

The Android version of the Bread bitcoin wallet.
MIT License
388 stars 426 forks source link

Option to paste amount when requesting/sending #141

Open leafcutterant opened 4 years ago

leafcutterant commented 4 years ago

Sometimes requested/sent amounts are from another source (e.g. you need to add numbers in a calculator app and enter that into the Amount field). Currently, the only way to do that is via memorization and manual input, which is not smooth.

I propose an option to be able to past values into the Amount field from the clipboard. Intuitively, this could work by long-tapping the Amount field and displaying a pop-up button. The operation would be successful only if the clipboard contains a number. A successful pasting would overwrite any previously entered value.

dabitdev commented 4 years ago

Did you try putting in the QR code the address + amount? It is pretty standard, something like this:

bitcoin:17w9uVZuPgsY7iLBVGB7qTZ1ZiZnTJKHLq?amount=100&message=this is a message

Screen Shot 2020-07-14 at 4 56 11 PM
leafcutterant commented 4 years ago

I'm not sure I got my point across to you. But if I did, your suggestion would be quite a kludgy way of going about it. I just want to be able to copy a number and paste it in the Amount field. Making a QR code, acquiring a second screen and scanning from that would be unnecessarily complex.

dabitdev commented 4 years ago

My suggesting works when you are outside of the app, it might now work in your case.

The amount field does not work like a EditText, I got your point.