Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Chumva committed Dec 23, 2024
1 parent fd217e6 commit 46d5358
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 46d5358

Please sign in to comment.