Skip to content

Updated SourceRowView to display icons for plugins#141

Open
this-Aditya wants to merge 1 commit into
RADAR-base:devfrom
this-Aditya:icons
Open

Updated SourceRowView to display icons for plugins#141
this-Aditya wants to merge 1 commit into
RADAR-base:devfrom
this-Aditya:icons

Conversation

@this-Aditya
Copy link
Copy Markdown
Member

@this-Aditya this-Aditya commented May 10, 2024

Added Custom Item for each plugin. With Support for different icons for different connection states of a plugin.

prmt.mp4

Supporting PR from radar-commons-android -> RADAR-base/radar-commons-android#445

@this-Aditya this-Aditya marked this pull request as draft May 10, 2024 09:43
@this-Aditya this-Aditya marked this pull request as ready for review May 13, 2024 15:14
@this-Aditya this-Aditya force-pushed the dev branch 3 times, most recently from 61d7fac to 7e20fe0 Compare March 2, 2025 05:46
private fun updateSourceIcon(status: SourceStatusListener.Status) {
pluginImageResource = imageResourceRef(status)
if (pluginImageResource != -1) {
mBatteryLabel.setImageResource(pluginImageResource)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make sense to rename the variable mBatteryLabel since it is not just for battery level anymore?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice point, but I think the related PR in radar-commons-android was already closed a long time ago, I just missed closing it here.

If I add this again now, it will likely introduce another merge conflict in the ktor-coroutines PR, which already has quite a few conflicts and probably needs some rework as well. I’m thinking of picking that up a bit later.

Would it be okay if we add this functionality at that time instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants