mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: add wake lock to map screen
This commit is contained in:
parent
d1e06e21bf
commit
04e8a6a514
2 changed files with 63 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ import com.geeksville.mesh.ui.map.components.CacheLayout
|
|||
import com.geeksville.mesh.ui.map.components.DownloadButton
|
||||
import com.geeksville.mesh.ui.map.components.EditWaypointDialog
|
||||
import com.geeksville.mesh.ui.map.components.MapStyleButton
|
||||
import com.geeksville.mesh.util.EnableWakeLock
|
||||
import com.geeksville.mesh.util.SqlTileWriterExt
|
||||
import com.geeksville.mesh.util.requiredZoomLevel
|
||||
import com.geeksville.mesh.util.formatAgo
|
||||
|
|
@ -136,6 +137,8 @@ fun MapView(model: UIViewModel = viewModel()) {
|
|||
val haptic = LocalHapticFeedback.current
|
||||
fun performHapticFeedback() = haptic.performHapticFeedback(HapticFeedbackType.LongPress)
|
||||
|
||||
EnableWakeLock(context)
|
||||
|
||||
val map = remember {
|
||||
MapView(context).apply {
|
||||
clipToOutline = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue