Log share intent

This commit is contained in:
M66B 2021-09-22 23:40:35 +02:00
parent ee98128635
commit f340f95201
1 changed files with 3 additions and 0 deletions

View File

@ -5288,6 +5288,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
}
}
EntityLog.log(context, "Sharing " + intent +
" extras=" + TextUtils.join(", ", Log.getExtras(intent.getExtras())));
PackageManager pm = context.getPackageManager();
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R &&
intent.resolveActivity(pm) == null) // system whitelisted