use of com.android.tools.idea.run.editor.DeployTargetProvider in project intellij by bazelbuild.
the class BlazeAndroidRunConfigurationDeployTargetManager method getDeployTarget.
@Nullable
DeployTarget getDeployTarget(Executor executor, ExecutionEnvironment env, AndroidFacet facet, int runConfigId) throws ExecutionException {
DeployTargetProvider currentTargetProvider = getCurrentDeployTargetProvider();
DeployTarget deployTarget;
if (currentTargetProvider.requiresRuntimePrompt()) {
deployTarget = currentTargetProvider.showPrompt(executor, env, facet, getDeviceCount(), isAndroidTest, deployTargetStates, runConfigId, (device) -> LaunchCompatibility.YES);
if (deployTarget == null) {
return null;
}
} else {
deployTarget = currentTargetProvider.getDeployTarget();
}
return deployTarget;
}
Aggregations