From 46d5358c99f44241ea30f8e2f1c11f6b9131eabd Mon Sep 17 00:00:00 2001 From: chumv Date: Mon, 23 Dec 2024 14:21:16 +0200 Subject: [PATCH] Fix compilation --- .../src/net/osmand/plus/plugins/odb/OBDWidgetSettingFragment.kt | 2 +- .../src/net/osmand/plus/plugins/odb/dialogs/RenameOBDDialog.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/plugins/odb/OBDWidgetSettingFragment.kt b/OsmAnd/src/net/osmand/plus/plugins/odb/OBDWidgetSettingFragment.kt index 4766e59e39a..7a522503fde 100644 --- a/OsmAnd/src/net/osmand/plus/plugins/odb/OBDWidgetSettingFragment.kt +++ b/OsmAnd/src/net/osmand/plus/plugins/odb/OBDWidgetSettingFragment.kt @@ -177,7 +177,7 @@ class OBDWidgetSettingFragment : BaseSimpleWidgetSettingsFragment() { private fun showSeekbarSettingsDialog() { val nightMode = !app.settings.isLightContentForMode(appMode) seekBarIntervalMillis = selectedIntervalMillis - val themedContext = UiUtilities.getThemedContext(activity, nightMode) + val themedContext = UiUtilities.getThemedContext(requireContext(), nightMode) val builder = AlertDialog.Builder(themedContext) val seekbarView = inflater.inflate(R.layout.map_marker_interval_dialog, null, false) builder.setView(seekbarView) diff --git a/OsmAnd/src/net/osmand/plus/plugins/odb/dialogs/RenameOBDDialog.kt b/OsmAnd/src/net/osmand/plus/plugins/odb/dialogs/RenameOBDDialog.kt index 7778e375512..6547b628ad0 100644 --- a/OsmAnd/src/net/osmand/plus/plugins/odb/dialogs/RenameOBDDialog.kt +++ b/OsmAnd/src/net/osmand/plus/plugins/odb/dialogs/RenameOBDDialog.kt @@ -123,7 +123,7 @@ class RenameOBDDialog : BaseOsmAndDialogFragment() { } private fun showDismissDialog() { - val themedContext = UiUtilities.getThemedContext(activity, isNightMode(false)) + val themedContext = UiUtilities.getThemedContext(requireContext(), isNightMode(false)) val dismissDialog = AlertDialog.Builder(themedContext) dismissDialog.setTitle(getString(R.string.shared_string_dismiss)) dismissDialog.setMessage(getString(R.string.exit_without_saving))