Avoid sharing the QR code image if the fields are not filled correctly
This commit is contained in:
parent
5240e88e1f
commit
80b5f9f571
1 changed files with 5 additions and 0 deletions
|
@ -382,6 +382,11 @@ class ReceiveTransactionFragment : Fragment(), ServiceConnection {
|
||||||
* sends an intent so the user can select the desired method to share the image.
|
* sends an intent so the user can select the desired method to share the image.
|
||||||
*/
|
*/
|
||||||
private fun shareQRScreenshot() {
|
private fun shareQRScreenshot() {
|
||||||
|
// TODO improve, show errors where necessary so the user can fix it
|
||||||
|
// Avoid sharing the QR code image if the fields are not filled correctly
|
||||||
|
if (mAsset == null)
|
||||||
|
return
|
||||||
|
|
||||||
// Get Screenshot
|
// Get Screenshot
|
||||||
val screenshot = Helper.loadBitmapFromView(container)
|
val screenshot = Helper.loadBitmapFromView(container)
|
||||||
val imageUri = Helper.saveTemporalBitmap(context!!, screenshot)
|
val imageUri = Helper.saveTemporalBitmap(context!!, screenshot)
|
||||||
|
|
Loading…
Reference in a new issue