Skip to content

Commit

Permalink
[Scanner] Include package name in missing signatures email body
Browse files Browse the repository at this point in the history
Signed-off-by: Muntashir Al-Islam <[email protected]>
  • Loading branch information
MuntashirAkon committed Aug 9, 2024
1 parent aedf23a commit 585f52d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,13 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
.showSelectAll(false)
.setNegativeButton(R.string.ok, null)
.setNeutralButton(R.string.send_selected, (dialog, which, selectedItems) -> {
String message = "Package: " + mViewModel.getPackageName() + "\n" +
"Signatures: " + selectedItems;
Intent i = new Intent(Intent.ACTION_SEND);
i.setType("message/rfc822");
i.putExtra(Intent.EXTRA_EMAIL, new String[]{"[email protected]"});
i.putExtra(Intent.EXTRA_SUBJECT, "App Manager: Missing signatures");
i.putExtra(Intent.EXTRA_TEXT, selectedItems.toString());
i.putExtra(Intent.EXTRA_TEXT, message);
startActivity(Intent.createChooser(i, getText(R.string.signatures)));
})
.show());
Expand Down

0 comments on commit 585f52d

Please sign in to comment.