-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Scanner] Include package name in missing signatures email body
Signed-off-by: Muntashir Al-Islam <[email protected]>
- Loading branch information
1 parent
aedf23a
commit 585f52d
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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()); | ||
|