add EXTRA_FLAG_TITLE to own copy2clipboard intent too (should fix #777)
This commit is contained in:
parent
9aadef1e2a
commit
48b412c97a
@ -146,7 +146,11 @@ public class IntentGenerator {
|
||||
|
||||
if (!containsCopyIntent(targets)) {
|
||||
// add SendToClipboard intent in case Drive is not installed
|
||||
targets.add(new Intent(intent).setComponent(new ComponentName(mContext, SendToClipboard.class)));
|
||||
Intent copyToClipboardIntent = new Intent(intent);
|
||||
copyToClipboardIntent.setComponent(new ComponentName(mContext, SendToClipboard.class));
|
||||
ResolveInfo activity = mPackageManager.resolveActivity(copyToClipboardIntent, 0);
|
||||
copyToClipboardIntent.putExtra(EXTRA_FLAG_TITLE, activity.loadLabel(mPackageManager));
|
||||
targets.add(copyToClipboardIntent);
|
||||
}
|
||||
|
||||
return targets;
|
||||
|
Loading…
x
Reference in New Issue
Block a user