Commit Graph

61 Commits

Author SHA1 Message Date
Jordane Quincy 1ea54b8d7f Add color support to UIUtils.applyMarkup (#667) 2019-10-07 15:14:48 +01:00
Synced Synapse c68235fcfc Tweak Themes
Use more consistent color Schemes
2019-05-21 20:51:21 +02:00
ssaqua 53e1a62afe Refactor marquee setup for multi-line TextViews 2019-04-20 22:17:11 +02:00
Tomer Froumin e2bb7d7c55 Support local play when Kodi requires authentication 2018-09-27 03:12:45 +02:00
Yiyang Tsui 0cd91c3905 Enable playing movies on device which app is running
playing movie on local device using in-device video app such as
    kodi or mxplayer ...
2018-02-09 11:23:52 +00:00
Synced Synapse 3077653dd9 Fix notifications to work with Android Oreo
Whan the background service is launcher, it is launched on the foreground and a notification is always shown.
The service stays on while something is playing. It stops itself on a connection error, quitting Kodi or 5 seconds after stopping
Make the Pause Phone Calls preference dependent on the Show Notification preference, as we always need to show a notification when the service is running
2017-12-24 17:49:40 +00:00
Martijn Brekhof 250c1f0fd1 Disabled shared element transitions from API 27 (#494)
AdapterView is not supported by the transition framework. This
became an issue with the release of API 27. In Android 8.1 the
shared element view is removed from the exiting fragment. This
causes Android to call the removeView method from AdapterView
which is not implemented and causes the app to crash.

We can reenable shared element transitions for API 27 and up by
refactoring the GridView usage to RecycleView.
2017-12-22 18:21:45 +00:00
Mon Zafra 206b5c9bc6 Apply markup to PVR text views; addresses #191 (#474) 2017-10-20 14:15:59 +01:00
Mon Zafra 45ecfc2e25 Implemented simple Kodi markup code applier for the Now Playing fragment (#471)
* Implemented simple Kodi markup code applier for the Now Playing fragment
* Moved to UIUtils; added early exit; now handles nesting of the same type
* Added handlers for LOWERCASE, CAPITALIZE, LIGHT and COLOR
- LOWERCASE and CAPITALIZE work, LIGHT and COLOR are just stripped out
- inlined the TextAppearanceSpan new's. Turns out they can't be reused.
* updated javadoc
* fixed crash when capitalizing an empty word
2017-10-19 09:05:45 +01:00
Synced Synapse a9c8fd7e56 Revert "Implemented a scalable control pad (remote) (#428)"
This reverts commit 3106a5fd61.
2017-09-15 16:08:52 +01:00
Martijn Brekhof 3106a5fd61 Implemented a scalable control pad (remote) (#428)
* Refactored RemoteFragment and created a compound view for the
     actual remote. I called it ControlPad to make it more clear what
     its main function is.
   * Implemented a custom grid layout (SquareGridLayout) that will
     always be square. When its width and height are both set to
     match_parent, it will take the smallest of the two as the
     actual size.
   * For devices with a smallest width smaller then 360dp the ControlPad
     is sized to the maximum available space. For larger devices we still
     use the old fixed sizes.
2017-08-30 19:53:47 +01:00
Martijn Brekhof cb430aa20d Implemented a slideup panel with media controls and info (#320)
* The slideup panel is only displayed when something is
         playing. It starts collapsed showing the media poster
         and title of what is currently playing.

       * Media controls implemented are volume, progress, shuffle,
         repeat and play/pause for all items. Next and previous are only
         available when a music item is playing.

       * In collapsed mode the panel will display the mute button only
         if Kodi is muted. The mute button in expanded mode is always
         visible.

       * Panel is enabled by default. Users can disable the panel
         in Settings

       * Implemented listening to Player.OnPropertyChanged notifications
         to update shuffle and repeat button states.
2017-07-13 19:10:49 +01:00
Martijn Brekhof eb8accb8fe Implemented RepeatModeButton widget (#408)
Its main purpose is to enable testing the repeat mode functionality.
2017-06-23 11:50:17 +01:00
Martijn Brekhof 85bcd846f2 Implemented VolumeLevelIndicator widget (#406)
* Refactored NowPlayingFragment to use new widget
  * Refactored UIUtils.highlightImageView to reduce code duplication
2017-06-22 18:37:00 +01:00
Martijn Brekhof 3be2d74f0a Fixed issue with filenames that contain question marks (#409) 2017-06-20 19:12:16 +01:00
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
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 b8fbf4e190 Refactored org.xbmc.kore.ui package into separate packages 2016-12-29 18:27:40 +00:00
Synced Synapse 661908c922 Add next episodes section to tv show details screen 2016-12-16 19:24:28 +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
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 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
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
George Kankava 079cf4e759 squid:S1155 - Collection.isEmpty() should be used to test for emptiness 2016-06-29 14:17:39 +04: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
David Eisner b0f2adb876
Addon content in addons activity tabs 2016-05-04 09:40:30 +01:00
Tomer Froumin d7aebaa8e4 Cleanup unused methods 2016-02-22 15:11:20 +02: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 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 a6845c2e79 Fix saving fragments in TabsAdapter. Previously it didn't work when the activity was destroyed. 2015-12-29 19:29:20 +00:00
Adrian Moennich f701280840 Add getInet4AddressByName util 2015-12-15 21:03:13 +01:00
Martijn Brekhof f84ccaf02a Implemented fix for movie and album shared element transitions
When shared element view is not visible on returning, the return shared
element transition starts off screen. This looks odd and we now simply
do not perform the shared element transition when the shared element is
not visible.
2015-12-11 12:32:03 +01:00
Martijn Brekhof 17c7609d72 Implemented shared element transition for TV shows
Added SharedElementCallback to be able to detect if shared element
is still visible. If not, the shared element transition should not
be performed when returning to the previous fragment.
Added the pager tab strip to the fade animation to keep shared element
transition smooth when poster is partly below the toolbar.
2015-12-10 15:34:26 +01:00
Synced Synapse ae9c22b20e Make accessing fragments inside a view pager more robust 2015-11-28 18:30:29 +00:00
Martijn Brekhof 2f0dd67761 Introduces new class AbstractDetailsFragment to reduce code duplication.
* Moved showRefreshAnimation() from AbstractListFragment to UIUtils as it is
  now used for detailed fragments as well.
2015-11-11 12:10:28 +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 d8750cc6db Fix changing play/pause icons on remote, with different themes 2015-07-30 22:40:02 +01:00
Synced Synapse 7936b8f2a3 Fix row count and max pictures count on cast grid view 2015-07-30 20:01:10 +01: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 a07a819898 Add support to see all cast on now playing screen 2015-07-29 18:37:28 +01:00
Synced Synapse b534ccd756 Change vibration duration to 50ms 2015-07-28 22:43:37 +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 7170dc9548 Moved vibration handling to UIUtils 2015-07-23 20:59:46 +05:30