Commit Graph

71 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
Artem Moskalchuk 2365a14585 Move hard-coded strings (group titles Remote and Application) to strings.xml (#361)
* Move hard-coded strings (group titles Remote and Application) to strings.xml

* Add missing strings to Ukrainian localization

* Update strings.xml

* Update strings.xml
2017-02-22 19:40:53 +00:00
tomerf d5f8ee4d49 Added option to sort by last played (#340) 2017-01-30 19:03:16 +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
mueller-ma 856516934f updated german translation (#327) 2016-12-29 18:49:28 +00:00
Synced Synapse 661908c922 Add next episodes section to tv show details screen 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 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
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
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
Synced Synapse def026eca4 Remove hardcoded string in preferences and move it to strings.xml 2016-09-23 18:52:54 +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
Synced Synapse faab6b8163 Merge branch 'call_notifications' of https://github.com/tomerf/Kore into tomerf-call_notifications 2016-05-20 10:24:58 +01:00
Synced Synapse de8e28b768 Merge pull request #239 from eisnerd/plugin-content-browser
Plugin/addon content browser
2016-05-10 13:15:09 +01:00
Martijn Brekhof e194ce8b2c Implemented SongsListFragment
The SongsListFragment lists all available songs for a connected host or
for a specific artist.
Added the songs tab to the music screen and to the artist details
screen.
2016-05-09 21:12:08 +02:00
David Eisner 51680a835c
Pin an addon as an addons activity tab 2016-05-04 10:06:18 +01:00
David Eisner dadc34901c
Plugin content browser
For feature request #72
2016-05-03 21:21:07 +01:00
Jörn-Thorben Hinz df7e896c48 Added option to keep the remote above the lockscreen (issue #61) 2016-02-20 00:05:20 +01:00
KowalskiOmniROM d55c308fdc Update strings.xml 2016-02-19 07:04:21 +01:00
Martijn Brekhof 8a3c78edcc Implemented single/multi column option for lists
Added a menu item in the overflow menu to allow the user
to switch the gridview between single column and multi column mode
2016-02-11 20:58:16 +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
Tomer Froumin 2e7ac6af80 Added support for pausing when phone in call 2016-01-30 17:32:00 +02:00
Martijn Brekhof 879f941151 Added settings options for allowed network types
This allows the user to select other network connection types,
besides WiFi, for downloading media files.
2016-01-28 09:45:56 +01:00
Synced Synapse dc5e7f183e Merge pull request #181 from tomerf/vimeo
Improved URLs parsing and added error message
2016-01-25 19:23:39 +00:00
Thomas Dalichow 34733b2516 Correcting grammar
I'm not a native english speaker, but "as", sounds far more correct than "of".
2016-01-24 17:04:48 +01:00
Tomer Froumin 1dbed708cb Improved URLs parsing and added error message 2016-01-23 13:10:55 +02:00
Martijn Brekhof d5ba611782 Implemented changing the position of items in the current playlist
This enables users to reorder the current playlist by long pressing a
list item and drag it to a different list position.
2016-01-19 12:02:08 +01:00
Synced Synapse 32171ebfba Improve PVR Guide 2015-12-13 16:01:50 +00:00
Synced Synapse f129e156af Fix string case 2015-12-12 18:35:25 +00:00
Raafat Akkad 63c32467d4 Add ability to sort by year, rating and length in the Movie fragment 2015-12-12 17:39:10 +01:00
Synced Synapse 5ccd76b349 Added first version of PVR EPG 2015-12-10 20:20:10 +00:00
Synced Synapse 7991d64581 Add recording to channels list 2015-11-29 14:59:32 +00:00
Synced Synapse 1cf701a422 Switch PVR fragments to using tabs instead of a menu for navigation 2015-11-28 18:19:44 +00:00
Synced Synapse 610fa85671 Added PVR recordings list 2015-11-24 22:55:56 +00:00
Martijn Brekhof fa77d460b6 Merge branch 'master' into issue#103
Resolved merge conflicts
2015-11-13 08:41:57 +01:00
Synced Synapse c1e5424675 Add support for radio channels in PVR 2015-11-12 22:44:03 +00:00
Martijn Brekhof f0c32e5c18 This implements feature request #103
Added refresh menu item in overflow menu to allow user to refresh the content in *ListFragments and *DetailsFragments.
2015-11-12 11:09:08 +01:00
Synced Synapse e6f6d74784 Add more helpful message when an error occurs in channels list 2015-11-10 23:18:33 +00:00
Synced Synapse e86f82ba4c Add option to configure shown navigation drawer items 2015-11-10 22:05:07 +00:00
Synced Synapse cc3ecdd5f5 Add support for PVR - first version. 2015-11-09 23:40:48 +00:00
Martijn Brekhof 69b1a9fcd4 Merge branch 'master' into librarysyncservicebounded 2015-10-06 20:15:17 +02:00
Synced Synapse 887b6d68a0 Hide next button in connection wizard when no network connection detected 2015-09-07 19:20:37 +01:00
martijn 1d8828d2e9 Implemented checking if network is enabled when searching for hosts 2015-09-03 15:34:40 +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
Synced Synapse 00c6e3d300 Change the "see all cast" button to be the last image on the cast grid view 2015-07-30 19:27:58 +01:00
Synced Synapse 4a88eadd50 Merge pull request #100 from akshay2000/master
Added Vibration on Remote Arrow Press
2015-07-28 19:43:22 +01:00
Synced Synapse cbed4d919a Add new activity to show all cast for movies and tv shows 2015-07-28 19:27:17 +01:00
Akshay Zade 4427ca0dbc Added setting item for vibrate on remote press 2015-07-19 14:23:29 +05:30
Synced Synapse 68ab545651 Add EventServer configuration options in wizard and host editing. 2015-06-21 15:04:54 +01:00