Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-9983-Use TiDrawableReference.fromUrl #3943

Merged
merged 2 commits into from Mar 18, 2013

Conversation

salachi
Copy link
Contributor

@salachi salachi commented Mar 8, 2013

Use TiDrawableReference.fromUrl to resolve the image correctly.

https://jira.appcelerator.org/browse/TIMOB-9983

Drawable d = new BitmapDrawable(mapWindow.getContext().getResources(), TiUIHelper.createBitmap(file
.getInputStream()));
TiDrawableReference drawableRef = TiDrawableReference.fromUrl(proxy, pinImage);
if (drawableRef != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

drawableRef cannot be null at this point. We don't need this check here.

@ghost ghost assigned pingwang2011 Mar 15, 2013
@pingwang2011
Copy link
Contributor

Code reviewed and functionally tested. Accepted

pingwang2011 added a commit that referenced this pull request Mar 18, 2013
TIMOB-9983-Use TiDrawableReference.fromUrl
@pingwang2011 pingwang2011 merged commit 2e496b5 into tidev:master Mar 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants