Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix not all obd widgets added via reorder widgets fragment #21366

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

0xRe1nk0
Copy link
Contributor

No description provided.

@@ -139,6 +139,21 @@ class VehicleMetricsPlugin(app: OsmandApplication) : OsmandPlugin(app), OBDReadS
val engineCoolantTempWidget: MapWidget =
createMapWidgetForParams(mapActivity, WidgetType.OBD_ENGINE_COOLANT_TEMP)
widgetsInfos.add(creator.createWidgetInfo(engineCoolantTempWidget))
val engineRuntimeWidget: MapWidget =
Copy link
Member

@Chumva Chumva Nov 18, 2024

Choose a reason for hiding this comment

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

Can we make widgets dynamic here based on WidgetType?
add something like WidgetType.getObdTypes(), it will make easies adding new types

@Chumva Chumva merged commit b429c35 into r4.9 Nov 18, 2024
3 checks passed
@Chumva Chumva deleted the fix_not_all_obdwidgets_available branch November 18, 2024 15:11
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