Skip to content

Introduce BaseActionViewController#1378

Draft
wutschel wants to merge 16 commits intoxbmc:masterfrom
wutschel:rework_baseactionvc
Draft

Introduce BaseActionViewController#1378
wutschel wants to merge 16 commits intoxbmc:masterfrom
wutschel:rework_baseactionvc

Conversation

@wutschel
Copy link
Copy Markdown
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
@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
@wutschel wutschel force-pushed the rework_baseactionvc branch 2 times, most recently from c49e791 to 3466903 Compare January 24, 2026 17:38
@wutschel wutschel marked this pull request as draft January 25, 2026 09:58
@wutschel wutschel force-pushed the rework_baseactionvc branch from 3466903 to 6523561 Compare March 14, 2026 08:34
@wutschel wutschel force-pushed the rework_baseactionvc branch 2 times, most recently from 14eb706 to 7a00228 Compare March 28, 2026 10:22
wutschel added 14 commits April 6, 2026 10:31
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 7a00228 to 8f36cd5 Compare April 6, 2026 08:31
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