Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Support Google API images in Android Emulator. #267

Merged
merged 1 commit into from
Apr 6, 2015

Conversation

teobugslayer
Copy link
Contributor

// this might be a google image
platform = target.split(":")[2];
if (platform) {
platformNumber = +platform;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will happen in case this is some strange image and after splitting by ":" we get string or undefined for platform. +ing it will set platformNumber ot NaN and the code will not work

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, if is a strange image, the code won't work anyway. Right now it returns undefined and the map()s after that do not find a suitable image and we give a message "no image found". I can make it throw an exception but this ultimately would give the same message to the user, right?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I didn't check the rest of the code, sorry.

@rosen-vladimirov
Copy link
Collaborator

👍 awesome 😸

teobugslayer added a commit that referenced this pull request Apr 6, 2015
Support Google API images in Android Emulator.
@teobugslayer teobugslayer merged commit 673eb42 into master Apr 6, 2015
@teobugslayer teobugslayer deleted the totev/android-emu-google branch November 18, 2015 15:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants