mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
do most of the steps to upgrade to compose dev08
This commit is contained in:
parent
f0492d3ee4
commit
d11cf34b3f
13 changed files with 27 additions and 31 deletions
|
|
@ -77,7 +77,6 @@ private val mapLifecycleCallbacks = object : Application.ActivityLifecycleCallba
|
|||
fun MapContent() {
|
||||
analyticsScreen(name = "map")
|
||||
|
||||
val typography = MaterialTheme.typography()
|
||||
val context = ContextAmbient.current
|
||||
|
||||
onCommit(AppStatus.currentScreen) {
|
||||
|
|
@ -161,7 +160,7 @@ fun MapContent() {
|
|||
bounds.includes(nodesWithPosition.map { it.position!! }
|
||||
.map { LatLng(it.latitude, it.longitude) })
|
||||
|
||||
CameraUpdateFactory.newLatLngBounds(bounds.build(), 100)
|
||||
CameraUpdateFactory.newLatLngBounds(bounds.build(), 150)
|
||||
} else {
|
||||
// Only one node, just zoom in on it
|
||||
val it = nodesWithPosition[0].position!!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue