From 9c27ca70270f03b33cc089fc06bb1c544e237c99 Mon Sep 17 00:00:00 2001 From: Corwin-Kh Date: Wed, 27 Nov 2024 00:53:26 +0200 Subject: [PATCH] Fixed crash on recreatin obd widgets --- OsmAnd/build-common.gradle | 2 +- OsmAnd/src/net/osmand/plus/plugins/odb/OBDTextWidget.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/build-common.gradle b/OsmAnd/build-common.gradle index 715fbf29e9d..2ed4a51164a 100644 --- a/OsmAnd/build-common.gradle +++ b/OsmAnd/build-common.gradle @@ -153,7 +153,7 @@ tasks.register('collectVoiceAssets', Sync) { } tasks.register('collectFonts', Copy) { - from "../../resources/rendering_styles/fonts" + from "../../rendering_styles/fonts" // from "../../resources/rendering_styles/fonts/OpenSans" into "assets/fonts" include "*.ttf" diff --git a/OsmAnd/src/net/osmand/plus/plugins/odb/OBDTextWidget.kt b/OsmAnd/src/net/osmand/plus/plugins/odb/OBDTextWidget.kt index ade102e8483..6f0bd5e7f63 100644 --- a/OsmAnd/src/net/osmand/plus/plugins/odb/OBDTextWidget.kt +++ b/OsmAnd/src/net/osmand/plus/plugins/odb/OBDTextWidget.kt @@ -147,7 +147,7 @@ open class OBDTextWidget( override fun updateSimpleWidgetInfo(drawSettings: DrawSettings?) { val visible = widgetType.isPurchased(app) - updateVisibility(visible) +// updateVisibility(visible) if (visible) { updateSimpleWidgetInfoImpl() }