Skip to content

Commit

Permalink
Merge pull request #1406 from flexn-io/fix/default_run_android_behaviour
Browse files Browse the repository at this point in the history
Default run android behaviour
  • Loading branch information
pavjacko committed Feb 20, 2024
2 parents 8679597 + d563b14 commit b985e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk-android/src/runner.ts
Expand Up @@ -116,7 +116,7 @@ export const getAndroidDeviceToRunOn = async (c: Context) => {

let chosenTarget: string;

if (activeDeviceInfoArr.length === 1 && !target) {
if (activeDeviceInfoArr.length === 1 && inactiveDeviceInfoArr.length === 0 && !target) {
chosenTarget = activeDeviceInfoArr[0].value;
logInfo(`Found only one active target: ${chalk().magenta(chosenTarget)}. Will use it.`);
} else if (activeDeviceInfoArr.length === 0 && inactiveDeviceInfoArr.length === 1 && !target) {
Expand Down

0 comments on commit b985e4c

Please sign in to comment.