xbmc / Official-Kodi-Remote-iOS

Full-featured remote control for XBMC Media Center. It features library browsing, now playing informations and a direct remote control.
Other
224 stars 104 forks source link

Rework messages to centralized approach #1109

Closed wutschel closed 2 months ago

wutschel commented 3 months ago

Description

This PR reworks the approach on how messages are shown. Before, each UIViewController had an own instance of MessagesView and the messages were presented by it. Now, there is only a single instance of MessagesView in either the iPad's or iPhone's main controller. All other UIVewControllers send notifications which are consumed by this central instance and shown from there. This allows to reduce code to layout and create several instances and it easily aligns the layout of the messages. In addition, this PR brings back the messages after executing action from the "Power Menu" (e.g. Audio Library Scan). Those were lost as part of refactoring and unifying the power menu.

Summary for release notes

Maintenance: Use centralized approach to show messages Bugfix: Show power menu related messages again

wutschel commented 2 months ago

Nicely squashed and rebased.