Skip to content

Conversation

@wutschel
Copy link
Collaborator

@wutschel wutschel commented Nov 23, 2025

Description

Closes #740.

This PR introduces new base class BaseActionViewController which implements actions commonly used across several UIViewControllers within the app. The most prominent examples are API actions around "Player", "Playlist", "PVR" as well as loading remote or NowPlaying views.

The first commits are preparing the different implementations by unifying the logic, the next commits are moving the common implementation to the new base class.

Summary for release notes

Maintenance: Unify methods used across several ViewControllers

@wutschel wutschel force-pushed the rework_baseactionvc branch 4 times, most recently from 1e693eb to ae718ca Compare December 14, 2025 18:22
@wutschel wutschel force-pushed the rework_baseactionvc branch 2 times, most recently from 39df9c0 to ee57baa Compare December 19, 2025 14:09
@wutschel wutschel force-pushed the rework_baseactionvc branch from ee57baa to 29582b3 Compare January 5, 2026 10:17
Variable action2 is obsolete. ActivityIndicator shall be only stopped after Playlist.Insert was executed.
Variable action2 is obsolete. ActivityIndicator shall be only stopped after Playlist.Insert was executed.
Adapt method playerOpen to reduce code duplication. Remove condition inside startPlayback.
Avoids button stays disabled after early return.
This base class implements actions shared by multiple UIViewControllers, e.g. play, queue, open URL, show remote, simple JSON commands and more.
Let iPhone's MasterVC only start instances of BaseActionController which simplifies their allocation.
The parameter httpAPIcallback (for backwards compatibility to Kodi "Eden") is mostly unused, so simply use the already existing simpleAction:params instead.
Rename method to simpleAction:params:xbmcHttp: for alignment with other classes and to follow the fucntion of the xbmcHttp: parameter which is not a callback but a command.
The parameter httpAPIcallback (for backwards compatibility to Kodi "Eden" is always nil, so remove it. Rename method to simpleAction:params for alignment with other classes.
@wutschel wutschel force-pushed the rework_baseactionvc branch from 29582b3 to 15ef065 Compare January 12, 2026 17:26
@wutschel wutschel marked this pull request as ready for review January 18, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unify queue and play method of DetailViewController and ShowInfoViewController

1 participant