Commit Graph

16 Commits

Author SHA1 Message Date
Martijn Brekhof 080b5809f3 Unittest/mediaprovider (#251)
Implemented integration tests for music items
2016-09-23 19:08:22 +01:00
Martijn Brekhof 7330f85241 Fixed issue with recursing music items
Using Kodi's JSON RPC, Kodi may return less items than requested, even
if there are more items available. The old method of determining if
more items are available by checking if the amount of items returned
equals the amount requested does not work in these cases. Therefore,
we now use the returned List.LimitsReturned to determine if there are
more items available. If List.LimitsReturned.end equals
List.LimitesReturned.total we assume we retrieved all items.
2016-05-10 15:08:38 +02:00
Martijn Brekhof 0e34874307 Implemented restoring search query
When user enters a search query for a ListFragment the query will
now be restored on device configuration changes and when
ListFragment is restored from the backstack or in a ViewPager.
2016-04-04 14:21:28 +02:00
Martijn Brekhof 8bfe2665dd Refactored MediaFileListFragment to support multi-/single-columns
Refactored AbstractListFragment to make it more generic and allow it to be used by
MediaFileListFragment. This adds support for switching between a single- and multicolumn
view.
Created new abstract class AbstractCursorListFragment for list fragments using a cursoradapter.
2016-03-22 12:22:15 +01:00
Martijn Brekhof f0f21d118a Implemented showing artist details
When user selects artist from ArtistListFragment it will now
show a screen displaying artist details. I've taken the TV show
details setup as an example.

This adds the following new functionality:

* Displaying artist fanart
* Displaying artist description
* Download all songs from an artist
2016-02-07 21:40:53 +01:00
Martijn Brekhof 73dd123fb3 Added context menu to TV episode list items
The context menu adds play and queue functionality for tv show
episode items in the tv show episode list.
2016-02-03 08:15:49 +01:00
Martijn Brekhof ffa96521f6 Implemented shared element transitions for albums
I removed using the poster as fanart if no fanart is available.
The reason is that the shared element transition is not very smooth
when the aspect ratio of the two image states is not the same.
Going from AlbumListFragment to AlbumDetailsFragment the poster
is resized correctly to the fanart size. However, returning to the
AlbumListFragment from the AlbumDetailsFragment the poster is
abruptly resized to the square aspect ratio needed for the list
fragment.
2015-12-04 21:02:45 +01:00
Synced Synapse d8435ae161 Possible fix to crash reported on Play Store (Fragment not attached to activity in OnCreateOptionsMenu) 2015-12-02 19:35:40 +00:00
Synced Synapse fa869b854c Make loading images in main lists use the same size as in the details view, so that both uses the same cached version in Picasso's cache, so that the image is immediatelly shown when the user enters the details view. 2015-11-02 18:24:54 +00:00
Synced Synapse 80fb10e534 Refactoring on Media list UI, for functions related with the Sync Service.
Removed AbstractMusicListFragment.java dur to the refactor
2015-10-13 23:05:50 +01:00
Martijn Brekhof 69b1a9fcd4 Merge branch 'master' into librarysyncservicebounded 2015-10-06 20:15:17 +02:00
Synced Synapse cd00b1a2e5 Changed MediaManager.java to MediaPlayerUtils.java 2015-09-07 19:02:12 +01:00
martijn bee35c216d Merge branch 'master' into librarysyncservicebounded
Conflicts:
	app/src/main/java/org/xbmc/kore/ui/ArtistListFragment.java
2015-09-04 11:24:57 +02:00
Martijn Brekhof 499e54f2cf Improved keeping user informed on sync progress
Implemented binding to LibrarySyncService to check if there are items currently
syncing or queued to sync. This makes it possible to inform user of background
sync processes.

Created two abstract classes to reduce code duplication and check if
LibrarySyncService has any items queued which are currently being displayed.

Fixed issue with SwipeRefreshLayout from appcompat library, which does not
always show the refresh animation when refresh is set to true.
2015-09-02 12:04:17 +02:00
Martijn Brekhof a7874de0e4 Added playing or queueing artist/album/genre from music screen
Implemented context menus in GridView items in AlbumListFragment,
ArtistListFragment and AudioGenreListFragment.
This allows the user to add everything from an artist, album, or
genre by popping up the context menu and selecting either play
or Add to playlist.

Created a new class utils/MediaManager to hold any methods related
to managing media. Added methods play(...) and queueAudio(...) to
add musiclist items to the current playlist and start playing.
2015-07-31 13:38:29 +02:00
Synced Synapse ed584fb9b7 Changed namespace/appid to org.xbmc.kore 2015-03-09 21:35:18 +00:00