Commit Graph

647 Commits

Author SHA1 Message Date
Raafat Akkad fa6796475c Add Adaptive Icon For API 26+ (#450)
* Target Sdk Version 26
* Add Adaptive Icon For API 26+
* Update travis to compile against API 26
* Move SVG files to art/launcher/v26/ per CR
* Scale logo to 83%
* Update buildToolsVersion to 26.0.2
* Update travis build-tools to 26.0.2
2017-11-11 15:26:18 +00:00
Martijn Brekhof b764fc676c Implemented a scalable control pad (#477)
* 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.

Refactored code to use styles
2017-10-27 19:24:23 +01:00
Martijn Brekhof bdefeafc3b Implemented integration tests for the control pad (#476)
* Added two abstract methods setSharedPreferences and
     configureHostInfo to allow test classes extending
     AbstractTestClass to set preferences or change the host info.
   * Implemented a mock event server to test event server commands
   * Implemented a handler to handle JSON input events over HTTP
2017-10-24 19:36:38 +01:00
Mon Zafra 8f6541e956 Handles the case where both v and list params are present in the url (#475) 2017-10-24 19:24:37 +01: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
Mon Zafra 41a433c985 Added handler for shared playlists from the YouTube app (#472)
- also fixed missing "/play/" segment in Vimeo plugin url
2017-10-17 19:56:19 +01:00
Martijn Brekhof 9e65350b5a Bug/androidtests (#466)
* Fixed issue with selecting tabs

* Fixed issue with switching host on other thread than UI thread

* Fixed concurrent modification exception in JSONConnectionHandlerManager

* Fixed issue with drawer not closing

* Fixes issue with running method only supported on API 21 and higher
2017-10-10 11:06:10 +01:00
Tamás Varga 108fb88b9f Use hardware volume keys from anywhere inside Kore (#453)
* Allow the RemoteActivity and BaseMediaActivity to show a volume controller dialog when hardware volume keys are pressed
** The dialog handles the key events and makes callbacks to the activities to handle showing the dialog itself

* Minor improvements
** Make HighlightButton render in the IDE GUI Editor
** Minor code cleanup
** set currentActivePlayerId = -1; on playerOnStop in BaseMediaActivity to be more consistent

resolves xbmc/Kore#235
2017-10-08 19:48:00 +01:00
Tamás Varga 8fb24ee806 unit test IDE execution improvements (#463)
* update README about Run Configuration setting
* update task that needs to depend on assembleFullDebug
** this was needed to run individual local tests
2017-10-01 12:34:45 +01:00
Martijn Brekhof d447789dc6 Updated documentation on running local and instrumentation tests (#460) 2017-09-28 19:54:52 +01:00
Synced Synapse 01f90c145d Fix unnecessary creation of Handlers 2017-09-28 19:52:12 +01:00
Synced Synapse 324d1e6251 Bump version for release 2017-09-15 17:01:43 +01:00
Synced Synapse 7eb6c882dc Fix now playing panel height 2017-09-15 16:56:52 +01:00
Synced Synapse ed23f49dc0 Improve PT-pt/br translations. The string didn't fit the available space in most situations 2017-09-15 16:22:04 +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
Synced Synapse 306609e340 Revert "Removed dependency on GridLayout in SquareGridLayout" (#446)
* Revert "Removed dependency on GridLayout in SquareGridLayout (#445)"
This reverts commit 876db18023.
2017-09-15 16:01:13 +01:00
Synced Synapse 1a979b3d6e Bump version for release 2017-09-08 19:19:13 +01:00
Martijn Brekhof 876db18023 Removed dependency on GridLayout in SquareGridLayout (#445)
* Removed using the GridLayout from the support library
     as this might be causing problems on devices that don't
     include the library correctly.
   * Replaced using the GridLayout measurement and layout implementations
     by our own implementation of a simple grid layout that will evenly distribute
     its children among a square sized grid.
2017-09-08 15:16:45 +01:00
DamageIncorporated 352b9bf0c3 fixed string "confirm_songs_download" (issue 435) (#437)
Correction as in issue https://github.com/xbmc/Kore/issues/435 and aligned wording to similar strings in lines 272ff
2017-09-02 15:09:45 +01:00
Synced Synapse ee35c21a20 Bump version for release 2017-08-31 19:34:57 +01:00
Martijn Brekhof a35f05c735 Fixed travis build by reducing the memory consumption of gradle (#436) 2017-08-31 09:11:02 +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
Synced Synapse 2761c8651b Add progress bar to tv shows list, similar to the one present in the seasons list 2017-08-30 19:32:01 +01:00
Martijn Brekhof dcad05580c Fixes lint error regarding an API restriction (#433)
Know bug: https://issuetracker.google.com/issues/37130193
2017-08-14 15:38:18 +01:00
Martijn Brekhof 590050e751 Improved usability for NowPlayingPanel (#432)
* Panel now only closes when collapsed bar is clicked.
     This prevents unwanted closing when using the sliders and
     buttons.
   * Moved collapsed panel size to the compound view so users
     of the NowPlayingPanel don't need to look inside the
     compound view layout to determine the correct size.
2017-08-14 15:37:30 +01:00
Martijn Brekhof 8cd974137b Upgraded android gradle plugin to 2.3.3 (#431)
* Added dependency on assembleFullDebug before running unit tests.
     Apparently assembleFullDebugUnitTest does not include
     the sourceset for fullDebug as defined in app/build.gradle
2017-08-08 18:44:24 +01:00
Synced Synapse 6d779af3b1 Fix travis build 2017-07-27 22:43:13 +01:00
Synced Synapse 0d73e278ba Update build tools 2017-07-27 20:22:49 +01:00
Synced Synapse cc6db7dc34 Fix translation issues 2017-07-27 20:20:30 +01:00
Synced Synapse f40c8c2f01 Use abbreviated season/episode number in now playing panel 2017-07-27 19:49:15 +01:00
Synced Synapse bea8700829 Update Portuguese translations 2017-07-27 19:45:31 +01:00
Yaron Shahrabani 99894aa6bd Updated Hebrew translation (#425) 2017-07-27 19:38:14 +01:00
Synced Synapse 3ce75bfa17 Tweak light theme colors 2017-07-25 19:44:38 +01:00
Martijn Brekhof 4b6bb27d00 Widgets use ButterKnife now and implement all View constructors. (#424)
The new widgets now implement all View constructors to make
the code more robust to any future changes in how the widgets
are used.
2017-07-25 19:34:53 +01:00
Synced Synapse f947912a23 Replace png icons by svg versions 2017-07-20 22:17:28 +01:00
Synced Synapse 8ecd0b281e Fix F-Droid link 2017-07-18 19:58:05 +01:00
Synced Synapse 859ad66424 Redesign Now Playing panel to make it fit the rest of the app look. Substitute png icons for svg ones. 2017-07-18 19:57:04 +01:00
mueller-ma 48529fa0c4 fix text formatting in german translation (#414) 2017-07-17 19:07:21 +01:00
Martijn Brekhof dbd08c07aa Implemented unit/integration tests for the now playing panel (#420)
* Fixed issue with opening drawer and Espresso not waiting for
    when drawer was actually opened.
  * Implemented new handlers for MockTcpServer to test
    media control functions.
  * Decreased delay for sending reponses in MockTcpServer from
    1 sec to 100 ms. This was needed to prevent race conditions with
    the progress bar that increases automatically once per second.
2017-07-17 19:07:11 +01:00
Synced Synapse 02a1d445f3 Use the same OnClickListener to handle buttons events 2017-07-13 19:22:14 +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
Synced Synapse 7186874471 Fix Travis build
Travis only gets the latest 50 git commits, which might not contain a tag that describes the version name, causing the build to fail. This change always returns a version name.
2017-06-26 10:45:15 +01:00
Martijn Brekhof 7b9ddaf69f Implemented a HighlightButton widget (#410)
This can be used by buttons that need to be highlighted such as
the shuffle and the mute buttons.
2017-06-25 10:19:41 +01:00
Synced Synapse 0933c68ef5 Update pt-pt translations 2017-06-23 20:01:54 +01:00
Synced Synapse 77a9a8ca0e Added option to show/hide watched indicator in movies and TV shows list 2017-06-23 19:50:46 +01:00
Synced Synapse 750478b164 Fix TV Shows margins 2017-06-23 19:12:02 +01:00
tomerf d596417b04 Added watched indicator for movies and tv shows lists (#412) 2017-06-23 18:36:31 +01:00
tomerf 70935d5e3f Changed sort of names and titles to be case insensitive (#411) 2017-06-23 17:29:31 +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