Search in sources :

Example 1 with StartActivityParams

use of com.android.launcher3.proxy.StartActivityParams in project android_packages_apps_Launcher3 by crdroidandroid.

the class BaseQuickstepLauncher method startIntentSenderForResult.

@Override
public void startIntentSenderForResult(IntentSender intent, int requestCode, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, Bundle options) {
    if (requestCode != -1) {
        mPendingActivityRequestCode = requestCode;
        StartActivityParams params = new StartActivityParams(this, requestCode);
        params.intentSender = intent;
        params.fillInIntent = fillInIntent;
        params.flagsMask = flagsMask;
        params.flagsValues = flagsValues;
        params.extraFlags = extraFlags;
        params.options = options;
        startActivity(ProxyActivityStarter.getLaunchIntent(this, params));
    } else {
        super.startIntentSenderForResult(intent, requestCode, fillInIntent, flagsMask, flagsValues, extraFlags, options);
    }
}
Also used : StartActivityParams(com.android.launcher3.proxy.StartActivityParams)

Example 2 with StartActivityParams

use of com.android.launcher3.proxy.StartActivityParams in project android_packages_apps_Launcher3 by crdroidandroid.

the class BaseQuickstepLauncher method startActivityForResult.

@Override
public void startActivityForResult(Intent intent, int requestCode, Bundle options) {
    if (requestCode != -1) {
        mPendingActivityRequestCode = requestCode;
        StartActivityParams params = new StartActivityParams(this, requestCode);
        params.intent = intent;
        params.options = options;
        startActivity(ProxyActivityStarter.getLaunchIntent(this, params));
    } else {
        super.startActivityForResult(intent, requestCode, options);
    }
}
Also used : StartActivityParams(com.android.launcher3.proxy.StartActivityParams)

Example 3 with StartActivityParams

use of com.android.launcher3.proxy.StartActivityParams in project android_packages_apps_Launcher3 by AOSPA.

the class BaseQuickstepLauncher method startIntentSenderForResult.

@Override
public void startIntentSenderForResult(IntentSender intent, int requestCode, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, Bundle options) {
    if (requestCode != -1) {
        mPendingActivityRequestCode = requestCode;
        StartActivityParams params = new StartActivityParams(this, requestCode);
        params.intentSender = intent;
        params.fillInIntent = fillInIntent;
        params.flagsMask = flagsMask;
        params.flagsValues = flagsValues;
        params.extraFlags = extraFlags;
        params.options = options;
        startActivity(ProxyActivityStarter.getLaunchIntent(this, params));
    } else {
        super.startIntentSenderForResult(intent, requestCode, fillInIntent, flagsMask, flagsValues, extraFlags, options);
    }
}
Also used : StartActivityParams(com.android.launcher3.proxy.StartActivityParams)

Example 4 with StartActivityParams

use of com.android.launcher3.proxy.StartActivityParams in project android_packages_apps_Trebuchet by LineageOS.

the class BaseQuickstepLauncher method startActivityForResult.

@Override
public void startActivityForResult(Intent intent, int requestCode, Bundle options) {
    if (requestCode != -1) {
        mPendingActivityRequestCode = requestCode;
        StartActivityParams params = new StartActivityParams(this, requestCode);
        params.intent = intent;
        params.options = options;
        startActivity(ProxyActivityStarter.getLaunchIntent(this, params));
    } else {
        super.startActivityForResult(intent, requestCode, options);
    }
}
Also used : StartActivityParams(com.android.launcher3.proxy.StartActivityParams)

Example 5 with StartActivityParams

use of com.android.launcher3.proxy.StartActivityParams in project Neo-Launcher by NeoApplications.

the class UiFactory method startActivityForResult.

public static boolean startActivityForResult(Activity activity, Intent intent, int requestCode, Bundle options) {
    StartActivityParams params = new StartActivityParams(activity, requestCode);
    params.intent = intent;
    params.options = options;
    activity.startActivity(ProxyActivityStarter.getLaunchIntent(activity, params));
    return true;
}
Also used : StartActivityParams(com.android.launcher3.proxy.StartActivityParams)

Aggregations

StartActivityParams (com.android.launcher3.proxy.StartActivityParams)14 Context (android.content.Context)1