Commit Graph

599 Commits

Author SHA1 Message Date
Martijn Brekhof cdbdd98d6a Implemented showing playlists even when not playing (#618)
Implemented showing a music/video/picture playlist in PlaylistFragment even
when playback has stopped but the playlist is still available on Kodi.
The playlist is now only cleared if the Playlist.OnClear event is received
from Kodi.

As the pictures playlist does not support moving/removing items this has
been disabled for the pictures playlist only.

Added a new package org.xbmc.kore.host.actions to hold all Callable's that
we use to handle complex interactions with Kodi that use multiple JSON RPC
calls.

Fixed issue in HostConnectionObserver in method notifySomethingIsPlaying
where hostState.lastGetItemResult.label might not be set.

Reduced calling (force)refreshPlaylist considerably as it should now be
handled by the playlist observer.
2019-03-30 11:08:58 +00:00
Synced Synapse 46d4b5ffe1 Use standard media style notifications
Use the standard media style notifications instead of the custom one
2019-03-21 19:54:01 +01:00
Valdnet 5c61743b59 Update Polish translations (#626)
Corrected and added new translation.
2019-03-04 09:46:36 +00:00
Kévin Minions 04d1e1f09a Update French translation (#625) 2019-03-04 09:45:09 +00:00
Synced Synapse fb03153365 Tweak movie list items 2019-03-01 21:04:20 +01:00
Yaron Shahrabani 5f6d4051f0 Updated Hebrew translation (#623) 2019-03-01 10:11:32 +00:00
Synced Synapse 8748ab8218 Fix NPE introduced in last commit 2019-02-27 19:56:22 +01:00
Martijn Brekhof 00fe2d49a5 Added movie ratings to movie listview items (#613)
Redesigning rate text to a five star rating bar.
2019-02-26 20:08:46 +00:00
ssaqua d6b6e81b94 Fix adaptive icon foreground dimensions (#619) 2019-02-18 16:55:12 +00:00
Synced Synapse b824930d8e Tweak periodic checking Kodi version 2019-02-08 22:30:48 +01:00
Synced Synapse c043c04264 Add support for OnAVStart event and tweak HostConnectionOberver 2019-02-08 22:30:48 +01:00
Martijn Brekhof e60df7e8ac Fixed issue with registering observers multiple times (#605)
Registering observers would cause the runnables to be
posted multiple times to the checkerHandler. This resulted
in callbacks being called more than once when a result was
received.
2019-02-07 16:39:56 +00:00
Martijn Brekhof 410169e802 Implemented scrolling title on remote control screen (#612)
When the title is longer than fits on screen, it wil first be ellipsized
and when user clicks on the title it will start scrolling to make it
fully readable.
2019-01-14 10:59:07 +00:00
Synced Synapse f7a63ae9a7 Add fastscroll to lists with RecyclerView 2019-01-12 14:26:36 +01:00
ferro9 6446ed7ad6 Catalan translation (#607) 2019-01-10 18:57:44 +00:00
Synced Synapse 2da6643bb4 Update PT-pt translations 2018-12-27 18:25:33 +00:00
Erik Rudisch 2693d62702 Add addons search 2018-12-27 16:21:07 +00:00
tobhor c6e8957b27 Update german translation (#600)
* Update german translation
2018-12-11 20:01:27 +00:00
Aleš Gombač 94de77a908 Added Slovenian translation (#594) 2018-11-08 10:27:04 +00:00
Iñigo Zendegi 92378d6e09 Update Basque translation
Add new string translation
2018-11-02 09:45:03 +00:00
Synced Synapse b281462f9d Fix PVR bottom bar shortcut behaviour 2018-10-27 20:53:15 +02:00
Tomer Froumin e2bb7d7c55 Support local play when Kodi requires authentication 2018-09-27 03:12:45 +02:00
Throws Throwable 639162cc06 Changed "TV-programma's" to "series" 2018-09-26 17:23:19 +02:00
Throws Throwable afdb33909e Changed "speelfilm" back to "film" 2018-09-26 17:23:19 +02:00
Throws Throwable c48d6fdaa3 Updated Dutch translations and modified some to be consistent with Kodi translations 2018-09-26 17:23:19 +02:00
KowalskiOmniROM 3306a3d957 Update French translations (#577) 2018-09-20 09:44:31 +01:00
Tomer Froumin f774f42700 Addon list improvements (#575)
* Added disabled indicator on addon list

* Added menu options to hide disabled addons

* Code review changes
2018-09-14 16:59:17 +01:00
Dan Pasanen 456ac6a107 Use a ChooserTargetService to direct a shared url to a specific host (#572)
* This gives the user a choice of their hosts to share a url to.
* Sadly the youtube app doesn't appear to support this. It wants to
  use some sort of crappy "Message on Youtube" thing rather than using
  standard android stuff (go figure). It does, however, work from a
  chrome browser of the youtube video, or likely any other supported
  share.
2018-09-14 16:47:51 +01:00
Martijn Brekhof 3c7c4afea7 Fixed clearing focus on search view 2018-09-09 14:09:59 +01:00
Martijn Brekhof 9999f37869 Fixed searchClickBackTest for MoviesActivity tests 2018-09-09 14:09:59 +01:00
Martijn Brekhof d634d9455e Refactored instrumentation tests to support RecyclerViews
* Fixed Espresso not waiting on ViewPager switching
* Removed BaseMediaActivityTests abstract class.
  Unfortunately the click action on list items now requires
  a unique item to be able to select the item to click.
  Therefore the tests from BaseMediaActivityTests have been
  moved to the specific test classes. This made the
  BaseMediaActivityTests class obsolete.
* Removed dependency on Context class in AddonsHandler and inlined
  the json data to allow the AddonsHandler to be initialized before
  the test activity is started. This was needed to have the
  AddonsActivityTests directly start the AddonsActivity, instead of
  first starting MoviesActivity and from there start the AddonsActivity.
2018-09-09 14:09:59 +01:00
Iñigo Zendegi 90527708d2 Translation of new strings to Basque (#565) 2018-09-02 12:48:42 +01:00
Martijn Brekhof 3f5ccefe2e Refactored ListView into RecycleView
Implemented custom RecyclerView to support using an empty view and a
    auto fitted grid layout.

    Reenabled shared element transitions for Oreo
2018-09-01 16:44:10 +02:00
Synced Synapse f985f4132d Fix back button not exiting the app when on the remote activity
Hitting the back button in the remote activity was being ignored, thus preventing exiting the app. This issue was inadvertidely introduced in d11dbe6853
2018-07-20 14:36:10 +02:00
Synced Synapse 94693cb5a5 Fix NPE on volume change by not unbinding the controls in the Volume Level Indicator too soon 2018-07-04 20:54:12 +02:00
Martijn Brekhof 36675bba47 Fix NPE when listener is attached while view is destroyed (#560) 2018-07-03 19:48:51 +01:00
Martijn Brekhof d11dbe6853 Fixes a possible race condition and starting multiple instances (#559)
The onDestroyView method is used to unregister the application observer
from the dialog. However the parent got called first which destroys the
view of the dialog. This could lead to Null Pointer Exceptions when
the listener tries to update the UI of the dialog right after it was
destroyed.

The VolumeControllerDialogFragmentListener was created twice as creation
was triggered on both the down and up event of the volume keys. This has
been changed to only trigger on down events.
2018-06-22 11:05:38 +01:00
Synced Synapse 796576eaa4
Fix volume controller UI (#558) 2018-06-16 13:10:18 +01:00
Martijn Brekhof e0f99c93c4 Fixed NPE in the VolumeControllerDialog (#553)
The applicationObserver was never unregistered resulting in a memory leak
and even worse, crashes when destroyed dialogs still got called through
the applicationOnVolumeChanged callback.

Also changed the view resource identifiers used by the controller dialog
as it used the same resource identifiers as the now playing panel.
2018-06-09 18:47:09 +01:00
Martijn Brekhof 16b4044edf Fixed reported NPE when calling notifySomethingIsPlaying (#552) 2018-06-09 18:46:05 +01:00
Yaron Shahrabani 7d5113ea26 Updated Hebrew translation (#544)
Used Transifex.
2018-05-22 17:12:46 +01:00
KowalskiOmniROM 71f7254daa Update French translation 2018-05-21 10:10:55 +01:00
Synced Synapse 5cd60d531e Reinstante the ability to bookmark addons
Somewhere along the line, the edits made in b0f2adb876 where lost because the `AddonsActivity` was instantiating `AddonListFragment` instead of `AddonListContainerFragment`.
This PR reinstates the ability to bookmark and access addons, and refactors the way those settings were being stored in the Shared Preferences to use the default Shared Preferences and take into account the specific host we're connected to.
2018-05-10 21:24:24 +02:00
Synced Synapse 78162a78b5 Update pt-PT translations 2018-05-10 21:22:36 +02:00
Synced Synapse 4a2d94c361 Remove unused strings 2018-05-10 21:22:36 +02:00
Synced Synapse 169bb3f781 Use TabLayout instead of PagerTabStrip
TabLayout is more in line with current Android design guidelines
2018-05-10 21:09:15 +02:00
Synced Synapse de683826ad Add support for handling Player.OnResume event through TCP
As detailed in https://github.com/xbmc/xbmc/pull/13726#issuecomment-378188082, Kodi will stop using the event Player.OnPlay when resuming a video, sending a Player.OnResume event instead. This PR handles that change.
2018-05-04 21:10:06 +02:00
Synced Synapse d3dcb4eb82 Fix handling of drawables on pre Lollipop versions
Reverts the change introduced in f631efeca9 , which changed the way drawables were handled, which introduced issues on pre Lollipop.
2018-05-04 20:14:58 +02:00
Martijn Brekhof f631efeca9 Fixed issue with running many instrumentation tests (#536)
During tests, activities were not closed properly causing increasing
memory usage, which resulted in failing tests because of
out of memory errors.
This has been fixed by using the test orchestrator which runs
each test in its own instrumentation instance.

Removed the instrumentationTest flavor and replaced it by using the
default debug build type. The flavor was used to keep the required
permissions during testing separate from release versions. This can
also be accomplished using the debug build type.

The PagerSlidingTabStrip from astuetz doesn't work with the new
android build tools. As the project seems dead, I replaced it with
PagerTabStrip from the support library.
2018-05-03 11:04:04 +01:00
Synced Synapse 75f8326fe4 Simplify sharing intent handling
Redesign ApiFuture to be more generic and independent of other classes
2018-04-24 13:36:35 +02:00