Skip to content

Commit

Permalink
map attribution part of MainScreen now (fixes #5881)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Sep 18, 2024
1 parent b97bc9f commit ce5f33d
Show file tree
Hide file tree
Showing 6 changed files with 212 additions and 204 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import android.graphics.Color
import android.graphics.PointF
import android.location.Location
import android.os.Bundle
import android.text.Html
import android.view.View
import android.view.ViewGroup
import android.view.WindowManager
Expand All @@ -30,7 +29,6 @@ import androidx.compose.ui.geometry.Offset
import androidx.core.graphics.Insets
import androidx.core.net.toUri
import androidx.core.os.bundleOf
import androidx.core.text.parseAsHtml
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.commit
Expand Down Expand Up @@ -69,9 +67,7 @@ import de.westnordost.streetcomplete.data.quest.QuestAutoSyncer
import de.westnordost.streetcomplete.data.quest.QuestKey
import de.westnordost.streetcomplete.data.quest.QuestType
import de.westnordost.streetcomplete.data.quest.VisibleQuestsSource
import de.westnordost.streetcomplete.data.urlconfig.UrlConfigController
import de.westnordost.streetcomplete.data.user.UserLoginSource
import de.westnordost.streetcomplete.data.visiblequests.QuestPresetsSource
import de.westnordost.streetcomplete.databinding.ActivityMainBinding
import de.westnordost.streetcomplete.databinding.EffectQuestPlopBinding
import de.westnordost.streetcomplete.osm.level.levelsIntersect
Expand All @@ -92,7 +88,6 @@ import de.westnordost.streetcomplete.screens.main.bottom_sheet.IsMapPositionAwar
import de.westnordost.streetcomplete.screens.main.bottom_sheet.MoveNodeFragment
import de.westnordost.streetcomplete.screens.main.bottom_sheet.SplitWayFragment
import de.westnordost.streetcomplete.screens.main.controls.LocationState
import de.westnordost.streetcomplete.screens.main.controls.MapControls
import de.westnordost.streetcomplete.screens.main.edithistory.EditHistoryViewModel
import de.westnordost.streetcomplete.screens.main.edithistory.icon
import de.westnordost.streetcomplete.screens.main.map.MainMapFragment
Expand Down Expand Up @@ -120,7 +115,6 @@ import de.westnordost.streetcomplete.util.location.LocationRequestFragment
import de.westnordost.streetcomplete.util.math.area
import de.westnordost.streetcomplete.util.math.enclosingBoundingBox
import de.westnordost.streetcomplete.util.math.enlargedBy
import de.westnordost.streetcomplete.util.parseGeoUri
import de.westnordost.streetcomplete.view.dialogs.RequestLoginDialog
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
Expand Down Expand Up @@ -255,7 +249,7 @@ class MainActivity :
setContentView(binding.root)

binding.controls.content {
MapControls(
MainScreen(
viewModel = controlsViewModel,
editHistoryViewModel = editHistoryViewModel,
onClickZoomIn = ::onClickZoomIn,
Expand Down
Loading

0 comments on commit ce5f33d

Please sign in to comment.