Java Code Examples for android.content.Intent.filterEquals()

The following are Jave code examples for showing how to use filterEquals() of the android.content.Intent class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: chromium-for-android-56-debug-video   File:   Source Code and License Vote up 6 votes
/** If the API allows it, returns whether a Task still exists for the parent Activity. */
private boolean isParentInAndroidOverview() {
    ActivityManager activityManager = (ActivityManager) mTab.getApplicationContext()
    for (ActivityManager.AppTask task : activityManager.getAppTasks()) {
        Intent taskIntent = DocumentUtils.getBaseIntentFromTask(task);
        if (taskIntent != null && taskIntent.filterEquals(mTab.getParentIntent())) {
            return true;
    return false;