From ec7a1c508ecd1b3c6868bb53ea25c5f15d259161 Mon Sep 17 00:00:00 2001 From: Prashant830 Date: Sun, 21 Aug 2022 22:39:04 +0530 Subject: [PATCH] Fixed Issue No #1131 Adding extra-text to be send with QR code --- .../org/mifos/mobilewallet/mifospay/qr/ui/ShowQrActivity.java | 1 + .../java/org/mifos/mobilewallet/mifospay/utils/Constants.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/qr/ui/ShowQrActivity.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/qr/ui/ShowQrActivity.java index 5a4279dbb..3becc9e45 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/qr/ui/ShowQrActivity.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/qr/ui/ShowQrActivity.java @@ -134,6 +134,7 @@ private void shareQr(Uri uri) { if (uri != null) { Intent intent = new Intent(Intent.ACTION_SEND); intent.putExtra(Intent.EXTRA_STREAM, uri); + intent.putExtra(Intent.EXTRA_TEXT, Constants.SCAN_MIFOS_QR); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); intent.setType("image/png"); intent = Intent.createChooser(intent, "Share Qr code"); diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/utils/Constants.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/utils/Constants.java index d521ed846..84c57c35e 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/utils/Constants.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/utils/Constants.java @@ -203,4 +203,6 @@ public class Constants { public static final String TO = " to "; public static final String COLON = " : "; + public static final String SCAN_MIFOS_QR ="Scan this QR code to pay through MifosPay"; + }