photo/mobile-android — pull request #229 by httpdispatch (2012-11-30 10:52:37+00:00)
Title: Parent project update

window is opened for it)
- GalleryFragment: adjusted photo details image sizes retrieval to use
common method from PhotoEndlessAdapter
- GalleryFragment.GalleryAdapter: adjusted super constructor call such
as it changed signature
- HomeFragment: added loading of the photo details required sizes in
addition to the shown photo size
- HomeFragment.NewestPhotosAdapter: now it extends PhotosEndlessAdapter
which can have photos sort order as a parameter
- HomeFragment.NewestPhotosAdapter: added on click listener to the photo
view which opens gallery activity
- HomeFragment.NewestPhotosAdapter: loadItems method removed such as it
is implemented in the PhotoEndlessAdapter
- PhotoDetailsActivityy: moved image sizes retrieval to the
PhotoEndlessAdapter getDetailsReturnSizes static method (usefult such
as these sizes are used at Home and Gallery fragments also)
- IOpenPhotoApi: changed signature of the one getPhotos method
occurence. Added sortBy argument.
- OpenPhotoApi: added constant NEWEST_PHOTO_SORT_ORDER
- OpenPhotoApi: addes sortBy argument support to the getPhotos method
- OpenPhotoApi: now getNewestPhotos doesn't use own api request
implementation. Instead it uses getPhotos method call with the sortBy
argment speicfied to the NEWEST_PHOTO_SORT_ORDER constant
- PhotosEndlessAdapter: added sortBy argument support to various
constructors
- PhotoEndlessAdapter: now loadItemsGeneral uses sortBy argument when
calling a getPhotos api
- PhotoEndlessAdapter: added getReturnSizes method variation
- PhotoEndlessAdapter: added getDetailsReturnSizes method which returns
sizes for the photo details activity
- PhotoEndlessAdapter.ParametersHolder: now it stores sortBy argument
also
- list_item_newest_photo.xml: specified photo view to be clickable