added aokp romcontrol copy2clipboard to list
This commit is contained in:
parent
576558e144
commit
7a6771e970
@ -86,10 +86,13 @@ public class IntentListView extends ListView {
|
|||||||
List<ResolveInfo> activities = mPackageManager.queryIntentActivities(intent, 0);
|
List<ResolveInfo> activities = mPackageManager.queryIntentActivities(intent, 0);
|
||||||
ResolveInfo defaultTarget = mPackageManager.resolveActivity(intent, 0);
|
ResolveInfo defaultTarget = mPackageManager.resolveActivity(intent, 0);
|
||||||
|
|
||||||
|
// search for "Copy to clipboard" target...provided by drive or AOKP
|
||||||
boolean hasCopyIntent = false;
|
boolean hasCopyIntent = false;
|
||||||
for (ResolveInfo resolveInfo : activities) { // search for "Copy to clipboard" target, provided by Drive
|
for (ResolveInfo resolveInfo : activities) {
|
||||||
if (resolveInfo.activityInfo.name.equals("com.google.android.apps.docs.app.SendTextToClipboardActivity")
|
if ((resolveInfo.activityInfo.name.equals("com.google.android.apps.docs.app.SendTextToClipboardActivity")
|
||||||
&& resolveInfo.activityInfo.packageName.equals("com.google.android.apps.docs"))
|
&& resolveInfo.activityInfo.packageName.equals("com.google.android.apps.docs")) ||
|
||||||
|
(resolveInfo.activityInfo.name.equals("com.aokp.romcontrol.ShareToClipboard")
|
||||||
|
&& resolveInfo.activityInfo.packageName.equals("com.aokp.romcontrol")))
|
||||||
hasCopyIntent = true;
|
hasCopyIntent = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user