aribhatt91 / flickrj-android

Automatically exported from code.google.com/p/flickrj-android
Other
0 stars 0 forks source link

wrong name of params for original dimensions #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. call getPeopleInterface().getPhotos with extra of url_o

What is the expected output? What do you see instead?
resulting photos have width and height values set. Resulting photos have width 
and height 0

What version of the product are you using? On what operating system?
2.00. Android

Please provide any additional information below.
Problem is in PhotoUtils class where

        photo.setOriginalWidth(photoElement.optString("o_width"));
        photo.setOriginalHeight(photoElement.optString("o_height"));

but param names are width_o and height_o

so solution would be to do following

        photo.setOriginalWidth(photoElement.optString("width_o"));
        photo.setOriginalHeight(photoElement.optString("height_o"));

Original issue reported on code.google.com by norbert....@gmail.com on 13 Aug 2013 at 12:28