Search in sources :

Example 6 with StartActivityParams

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

the class UiFactory method startIntentSenderForResult.

public static boolean startIntentSenderForResult(Activity activity, IntentSender intent, int requestCode, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, Bundle options) {
    StartActivityParams params = new StartActivityParams(activity, requestCode);
    params.intentSender = intent;
    params.fillInIntent = fillInIntent;
    params.flagsMask = flagsMask;
    params.flagsValues = flagsValues;
    params.extraFlags = extraFlags;
    params.options = options;
    ((Context) activity).startActivity(ProxyActivityStarter.getLaunchIntent(activity, params));
    return true;
}
Also used : Context(android.content.Context) StartActivityParams(com.android.launcher3.proxy.StartActivityParams)

Example 7 with StartActivityParams

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

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 8 with StartActivityParams

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

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 9 with StartActivityParams

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

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 10 with StartActivityParams

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

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)

Aggregations

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