File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -503,14 +503,17 @@ export class PlatformService implements IPlatformService {
503503 devices = this . $childProcess . exec ( `${ androidPath } list avd` ) . wait ( ) ;
504504 }
505505
506- if ( this . $options . availableDevices ) {
506+ if ( this . $options . availableDevices ) {
507507 this . $logger . info ( devices ) ;
508508 }
509509
510- if ( this . $options . device || this . $options . avd ) {
511- let deviceName = this . $options . device || this . $options . avd ;
510+ if ( this . $options . device || this . $options . avd ) {
511+ if ( this . $options . avd ) {
512+ this . $options . device = this . $options . avd ;
513+ this . $options . avd = undefined ;
514+ }
512515
513- if ( devices . indexOf ( deviceName ) !== - 1 ) {
516+ if ( devices . indexOf ( this . $options . device ) !== - 1 ) {
514517 let packageFile : string , logFilePath : string ;
515518 let platformData = this . $platformsData . getPlatformData ( platform ) ;
516519 let emulatorServices = platformData . emulatorServices ;
You can’t perform that action at this time.
0 commit comments