Commit Graph

303 Commits

Author SHA1 Message Date
Martijn Brekhof 412931b8db Refactored AbstractDetailsFragment
This introduces the MVC model to details fragments. It moves as much
view and control code out of the concrete fragments into the abstract
classes.

   * Added UML class and sequence diagrams under doc/diagrams to clarify
     the new setup

   * Introduces new abstract classes
      * AbstractFragment class to hold the DataHolder
      * AbstractInfoFragment class to display media information
      * AbstractAddtionalInfoFragment class to allow *InfoFragments
        to add additional UI elements and propagate refresh requests.
        See for an example TVShowInfoFragment which adds
        TVShowProgressFragment to display next episodes and season
        progression.

   * Introduces new RefreshItem class to encapsulate all refresh
     functionality from AbstractDetailsFragment

   * Introduces new SharedElementTransition utility class to encapsulate
     all shared element transition code

   * Introduces new CastFragment class to encapsulate all code for
     displaying casts reducing code duplication

   * Introduces DataHolder class to replace passing the ViewHolder from
     the *ListFragment to the *DetailsFragment or *InfoFragment

   * Refactored AbstractDetailsFragment into two classes:

     o AbstractDetailsFragment: for fragments requiring a tab bar
     o AbstractInfoFragment:    for fragments showing media information

     We used to use <NAME>DetailsFragments for both fragments that show
     generic
     info about some media item and fragments that hold all details for
     some media item.
     For example, artist details showed artist info and used tabs to
     show artist albums and songs as well. Now Details fragments are
     used to show all details, Info fragments only show media item
     information like description, title, rating, etc.

   * Moved swiperefreshlayout code from AbstractCursorListFragment to
     AbstractListFragment
2017-03-02 11:55:19 +01:00
Martijn Brekhof d3a68b73c9 Fixed playing, queueing, downloading individual songs (#363) 2017-02-24 18:58:42 +00:00
primaeval 668feb1355 remove [] formatting (#353) 2017-02-20 19:05:49 +00:00
Joel Hedlund 7a2ed7704a Add support for sharing SVTplay urls to "Play on Kodi". (#343)
* Add support for sharing SVTplay urls to "Play on Kodi".
SVTplay is a free streaming service provided by the Swedish national television SVT.
This feature requires the svtplay video plugin on Kodi.
* Fix SVTplay share always playing first episode of series.
2017-01-30 19:06:14 +00:00
tomerf d5f8ee4d49 Added option to sort by last played (#340) 2017-01-30 19:03:16 +00:00
Synced Synapse c9147231ab Fix for empty titles on playlist 2017-01-27 15:33:16 +00:00
Aneesh Agrawal 66c145d778 Enable manual configuration of https (#338)
* Allow specifying HTTPS Hosts manually
This is not exposed in the UI, but on the manual host configuration screen, if the address starts with a  "http://" or "https://" this will be stripped and the `isHttps` flag set appropriately.

Additionally, the port can be configured as part of the address as well.
Any port specified as part of the address takes precedence over the explicit HTTP port box, to allow easy copy-pasting of an entire URL for a host.

This enables using Kore with Kodi instances available though HTTPS (e.g. via a reverse proxy).
2017-01-27 15:17:39 +00:00
Mon Zafra 6e347b6b36 Materialized dialogs and preferences (#330)
* Changed platform AlertDialogs and preference.* to support lib counterparts
- added dependencies: support/preference-v7 for PreferenceFragmentCompat
  and Preference subclasses, support/preference-v14 for the
  MultiSelectListPreference
- simplified some AlertDialog.Builder calls and added non-null annotations
  to DialogFragment#onCreateDialog(Bundle) overrides to shut the IDE up
- UIUtils: changed static member avatarColorsIdx to local var because it's
  only used in one place and the value isn't cached
- layout/dialog_send_text: removed view vertical margins as they take
  way too much space for nothing.
- strings: shortened english preference titles
- themes: added PrefTheme and changed preference title font size to medium
  from large
- preferences: changed CheckBoxPreference to SwitchPreferenceCompat. these
  don't have the same issue described in #233 (tested in kitkat).

* Changed platform PreferenceManager in RemoteActivity to support pref

* Fixed M permissions

* Split prefs into 2 groups as per material design guidelines

* Changed prefs theme to v14.material

* Moved container padding to individual prefs; removed pref-v7 dependency
- this makes the item dividers touch the screen edges which i think looks
  better
- don't need to require preference-v7 because preference-v14 already
  does

* Moved PrefTheme attributes *{Start,End} to v17 override

* Fixed crash caused by rotating twice while a dialog is active

* Changed wording as suggested
2017-01-04 08:37:13 +00:00
Martijn Brekhof 07be6da2ad Fixed lint errors regarding calling new methods on older versions (#334) 2017-01-03 16:14:39 +00:00
Martijn Brekhof b8fbf4e190 Refactored org.xbmc.kore.ui package into separate packages 2016-12-29 18:27:40 +00:00
Synced Synapse 7d2a3e04bc Change (some) assets to svg instead of png 2016-12-23 08:49:36 +00:00
Synced Synapse 6245a9c7d5 Use ExpandableTextView on Text views that expand on clicking them 2016-12-19 19:25:24 +00:00
Martijn Brekhof b01e3c8ddc Fixes reported crashes caused by a NullPointerException (#325)
Multiple NullPointerExceptions have been reported in Google Play (dev).
Probably caused by calling onTaskRemoved more than once.
2016-12-19 18:57:08 +00:00
Synced Synapse 661908c922 Add next episodes section to tv show details screen 2016-12-16 19:24:28 +00:00
Synced Synapse 04d901cf03 Fix hiding/showing watched episodes in episode list 2016-12-16 19:24:28 +00:00
Synced Synapse 3152ee540b Add progress bar to seasons list 2016-12-16 19:24:28 +00:00
Synced Synapse 43371b9480 Redesign tv shows details, to not use tabs or expandable lists in episodes list
First version, to be improved visually
2016-12-15 20:10:55 +00:00
Martijn Brekhof d993126c7e Fixed retrieving wrong handler for applicationNotificationsObserver (#319) 2016-12-02 11:04:17 +00:00
Sebastian 03cd43bdac change "title" from itemFile.title to itemFile.label for TYPE_ALBUM and TYPE_SONG (#315) 2016-11-30 12:38:26 +00:00
Martijn Brekhof c5848ce648 Implemented showing volume level on NowPlayingFragment (#312)
Replaced up/down volume buttons with a seekbar that displays the current
volume level and can be used to change the volume level
2016-11-30 12:20:21 +00:00
tomerf d2b5449e98 Check the status of the mute button in NowPlaying (#294) 2016-11-20 14:18:43 +00:00
Synced Synapse 92773ea57c Prevent crash introduced in a4945c8534 when there are no hosts configured 2016-11-16 12:10:20 +00:00
Synced Synapse 361a854e1f Change the select button to also send an Event Server code if the Event Server connection is being used.
This allows the select button to work in situations where the jsonrpc server isn't functional yet
2016-11-15 19:39:54 +00:00
Synced Synapse 18811371a7 Use Kodi's version stored on the DB to decide which window to display on long press on Info button 2016-11-15 19:25:16 +00:00
Synced Synapse b7ece61951 Fix for long press Info button to display codec info in v17 (#286) 2016-11-15 19:22:30 +00:00
Synced Synapse 4a8b2b4d43 Use Kodi's version stored on the DB instead of calling Kodi in the download subtitles option 2016-11-15 19:18:16 +00:00
Synced Synapse a4945c8534 Add Kodi version to Hosts table on DB and keep it periodically updated 2016-11-15 19:09:23 +00:00
Synced Synapse 39ee0b6634 Removed checking wether PVR is enabled in RemoteActivity, as this was only needed to aid in the transition when PVR was implemented 2016-11-15 15:47:11 +00:00
Martijn Brekhof b7b1470484 Fix and improve downloading song
* Fixed issue downloading all songs from an artist
* Added download option for songs in songslistfragment
* Created UIUtils.downloadSongs(...) to reduce code duplication
* Refactored downloading of songs on host/artist/album levels
  All levels now use song display artist as artist and album display artist.
  This prevents downloading songs multiple times when downloading same song on different levels.
2016-11-09 08:48:22 +00:00
Martijn Brekhof 49a253af34 Added sort options to albumlistfragment (#309)
List is sorted by default on album title. User can change this to artist or artist/year.
2016-11-09 08:46:42 +00:00
Martijn Brekhof 11b8d12b31 Implemented sorting on disc number in AlbumDetailsFragment (#310) 2016-11-08 19:57:05 +00:00
Martijn Brekhof eedd1e99b4 Implemented showing artist names in song lists (#281)
* Song lists for artist, album, and overall now shows the artist name for each individual song
* Added display artist column to songs table. This required a DB upgrade and users should
  do a refresh for music items to be able to see the display artist in the song lists.
2016-10-20 19:26:43 +01:00
noctux f0cd9a67f8 Support playback of shared plain http-video urls (#292)
Currently Kore does only support the playback of youtube and vimeo video
urls when invoked via the "Play with Kodi" share menu.

This commit adds support for plain video urls.
2016-10-18 19:06:41 +01:00
Synced Synapse 83ed7b3cb6 Fix issues with downloading files without titles (in artists, albums, movie titles or TV Show titles) 2016-10-11 20:05:23 +01:00
Martijn Brekhof dadabd09c5 Implemented recursion fix for movies and tv shows (#283)
This applies the fix for issue #219 Incomplete libraries for movies and
TV shows.
For music items this was already fixed in PR #236
See commit 7330f85241
2016-09-26 18:31:22 +01:00
Martijn Brekhof 080b5809f3 Unittest/mediaprovider (#251)
Implemented integration tests for music items
2016-09-23 19:08:22 +01:00
Synced Synapse cf5ab6335e Fix TypedArray.getResourceId warnings/errors 2016-09-16 19:09:06 +01:00
Bharat a4e19a5578 Fix for long press Info button to display codec info in v17 2016-09-14 01:24:01 -07:00
Martijn Brekhof 6ab8b2b604 Implemented keeping screen on when using the remote activity (#280) 2016-09-07 19:33:58 +01:00
Synced Synapse 466996f34e Merge pull request #250 from poisdeux/issue/#7
Fixed issue showing songs without an album or artist
2016-07-06 17:06:51 +01:00
Martijn Brekhof 21389b1e9e Fixed issue showing songs without an album or artist 2016-06-30 21:13:49 +02:00
Synced Synapse 6cfd71b2ed Merge pull request #261 from DevFactory/release/collection.isEmpty()-should-be-used-to-test-for-emptiness-fix-1
squid:S1155 - Collection.isEmpty() should be used to test for emptiness
2016-06-30 17:51:58 +01:00
George Kankava 079cf4e759 squid:S1155 - Collection.isEmpty() should be used to test for emptiness 2016-06-29 14:17:39 +04:00
George Kankava ddd3d26949 squid:S1488 - Local Variables should not be declared and then immediately returned or thrown 2016-06-29 13:49:04 +04:00
Synced Synapse 4572775a51 Improve file list UI 2016-06-16 19:40:36 +01:00
Martijn Brekhof 6f60442e7b Implemented integration tests to test restoring search query
* Added perl tools to generate json files for music and movie data
* Upgraded build tools version, sdk compile version, and support libraries
  as this is required by the test packages.
* Added new product flavor instrumentationTest to make sure assets and settings
  required for testing do not also ship with a release version of Kore
2016-06-16 11:04:25 +02:00
Tomer Froumin 22ccee5b0f Only show file size if available 2016-06-08 14:00:27 +03:00
Tomer Froumin fd793d6354 Added file size to media file list view 2016-06-04 16:25:15 +03:00
Synced Synapse ae8396909f Fix some lint errors 2016-05-25 19:03:50 +01:00
Synced Synapse 6dcf412140 Update android sdk to v23
Deal with Android 6 permission system
Update gradle version
2016-05-25 17:18:25 +01:00