Skip to content

Commit

Permalink
Fixed Issue No openMF#1131 Adding extra-text to be send with QR code
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant830 committed Aug 21, 2022
1 parent ccbbdf9 commit ec7a1c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

}

0 comments on commit ec7a1c5

Please sign in to comment.