Commit Graph

776 Commits

Author SHA1 Message Date
Synced Synapse
b962fece80 Apply markup decoding to media file list and addon content list 2019-11-30 19:54:59 +01:00
Artem Moskalchuk
4897c3fd43 Update Ukrainian localization (#687) 2019-11-28 19:21:25 +00:00
Kévin Minions
e0de5e3bdc Update strings.xml (#684) 2019-11-27 18:26:38 +00:00
Martijn Brekhof
41b9f33cd2 Implemented changing language in-app (#680)
This allows users to use a different supported locale than the one that
matches the device's locale.
2019-11-15 18:11:21 +00:00
cpunk
6899a53e2c corrected translation (#682)
geschalten -> corrected to geschaltet
2019-11-04 08:37:01 +00:00
Nick Grimshaw
f91d799823 Fix issue with showing multiple bookmarked addons (#678) 2019-10-14 17:58:40 +01:00
Jordane Quincy
1ea54b8d7f Add color support to UIUtils.applyMarkup (#667) 2019-10-07 15:14:48 +01:00
Anatoly Nikiforov
f7ed2f3bc3 Update russian strings (#676) 2019-09-30 12:36:15 +01:00
Martijn Brekhof
f024c13ca5 Implemented UI tests for PlaylistFragment (#658) 2019-09-30 12:35:17 +01:00
Synced Synapse
7dfd982643 Tweak connection threads
This PR fixes some issues with connections and threading. Specifically, the  change in #618 introduced threading in `HostConnection`, which had some issues. To fix them, the following changes were made:
- A specific TCP listener thread is used and manually started, instead of using one of the threads in the pool. The TCP listener thread is a long lived thread that should always be running (as long as the connection is through TCP), blocked listening on the TCP socket, so it shouldn't be managed in a pool, where, theoretically, it can be paused and reused. 
- Changed the number of threads to 5. We shouldn't need more than this, otherwise we can overwhelm some Kodi hardware.
- Had to sprinkle some `synchronized` to avoid race conditions. For instance, through a TCP connection, as soon as Kore is opened (on the remote screen) it will call at least `GetActivePlayers`, `GetProperties`, `Ping`. If the TCP socket isn't set up yet, each of these calls would create a socket (and a TCP listener thread), so we would open 3 or more sockets when we should just open 1. A `synchronized` in `executeThroughTcp` prevents this. The others prevent similar issues.

Aditionally:
- Tweaked the playlist fetching code, so that it happens exclusively in `HostConnectionObserver` and when PlaylistFragment is notified of changes, it already gets the playlist data. This somewhat simplifies the code, and makes it more consistent with the Player Observer code;
- Change `EventServerConnection` to accept a Handler on which to post the result of the connection, so that the caller can control on which thread the result is called;
- Calls to the various `RegisterObserver` loose the reply immediately parameter, as it was always true.
2019-09-28 22:10:04 +02:00
Tibor Repček
4ac37f3f02 Added slovak language (slovenčina) (#672)
* Create strings.xml

* Update strings.xml
2019-09-07 12:29:49 +01:00
Jay Linski
8e0176e326 Support sharing SoundCloud tracks (#671) 2019-09-07 12:28:51 +01:00
Valdnet
384e2c0e83 Update strings.xml [PL] (#666)
Improving the translation.
2019-07-22 11:30:29 +01:00
Synced Synapse
e24dcca1ce Fix HTML in translations 2019-07-11 12:40:39 +02:00
Synced Synapse
795e45fc52 Fix field id in view 2019-07-11 12:39:55 +02:00
ssaqua
b41f470b24 Fix href tag closing (#660) 2019-07-10 19:04:42 +01:00
wbarnard
fd2d1359ac Add sort by year section thumb text (#659) 2019-07-10 18:57:14 +01:00
Martijn Brekhof
3b2447607b Implemented support for handling multiple playlists in tests (#657)
Added support for handling multiple playlists in the Mock TCP server.
Refactored SlideUpPanelTests to support the new playlist handler.

Some code cleanup and enhancements
- Removed throw exception declarations from methods that never throw the exception.
- Changed deleting the test database on the test device to delete all databases.
  The former method of only deleting the test database resulted in many old databases
  that were not removed when the test run crashed.
- Enhanced robustness of testing async code by explicitly waiting for a view
  to reach a certain state.
2019-07-03 18:54:51 +01:00
wbarnard
1020b8b7de Fix invisible media details in info fragment (#656) 2019-07-03 18:41:21 +01:00
Synced Synapse
a2e4362564 Fix addons content sort
Don't specify a sort method in the listing of addon contents, so that the addon can sort its contents as it sees fit.
2019-07-01 20:57:53 +02:00
Synced Synapse
e7a17e87ae Fix force close caused by migration to Android 9
Android 9 requires that apps that launch foreground services request that permission, as detailed in https://developer.android.com/about/versions/pie/android-9.0-migration#tya
2019-07-01 20:39:17 +02:00
Iñigo Zendegi
3497a5f464 Update strings.xml (#655) 2019-06-30 12:38:49 +01:00
wbarnard
4043883a8a Add sort by year option for albums (#649) 2019-06-30 12:38:16 +01:00
Synced Synapse
87a18cfe51 Don't sync TV Shows that have no episodes
After a library clean operation on Kodi, if a TV Show that was previously present is absent it is still returned in a call to `VideoLibrary.GetTVShows` with 0 episodes. Kore shouldn't consider these TV Shows, as they have no episodes.
2019-06-20 19:32:34 +02:00
Min-ho Park
1a2321d961 Add Korean translation (#646) 2019-06-12 18:20:31 +01:00
Martijn Brekhof
d1d8412654 Refactored unit tests (#643)
* Removed redundant configureHostInfo
  It was only used to set the Kodi backend version which is also
  set using setKodiMajorVersion.

* Removed unused annotations and throwables

* Improved robustness of SlideUpPanelTests
  Replaced explicit sleeps with the waitForView action.
  Fixed issue in waitForView action as it required the UI
  to be idle which is mostly not the case for the bottom
  panel with the progress indicator.

* Improved robustness of eventserver
  When eventserver handles a wrong payload this should not crash
  but simply show a log message and let the actual test fail.
2019-06-11 08:47:11 +01:00
Martijn Brekhof
e5ab122b1d Updated gradle and compile and target SDK version (#640)
Had to upgrade robolectric as well as old version didn't
seem to cooperate with new gradle version.
2019-06-03 10:50:31 +01:00
Synced Synapse
c68235fcfc Tweak Themes
Use more consistent color Schemes
2019-05-21 20:51:21 +02:00
Synced Synapse
c7fef43deb Fix ANR in service launch
Some ANRs are reported on Google Play. This is an atempt to remove them, by making sure that `startForeground` is always called when the service starts.
2019-05-14 22:06:34 +02:00
Synced Synapse
c81e553589 Fix Jenkins build to upload the correctly signed apk 2019-05-14 20:02:18 +02:00
pavreh
fd7055282b Update Czech translation (#637) 2019-05-10 12:00:32 +01:00
ssaqua
53e1a62afe Refactor marquee setup for multi-line TextViews 2019-04-20 22:17:11 +02:00
ssaqua
2706210cef Set ellipsize and horizontally scrolling state based on selected state 2019-04-20 22:17:11 +02:00
ssaqua
ce210e9683 Implement scrolling title on now playing and general media info screens 2019-04-20 22:17:11 +02:00
Martijn Brekhof
4dda3ac6e8 Improved performance in SquareGridLayout (#631) 2019-04-07 13:28:32 +01:00
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
851b8b9059 Bump version for release 2019-02-11 11:20:06 +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
Synced Synapse
0c68ad1610
Bump version for release (#614) 2019-01-14 11:40:19 +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