From a5822bb53298f8fc50307cb9b13e76e57aeff953 Mon Sep 17 00:00:00 2001 From: andrekir Date: Fri, 3 Nov 2023 19:08:05 -0300 Subject: [PATCH] fix: InvalidWakeLockTag --- .../geeksville/mesh/ui/map/components/MapViewWithLifecycle.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/geeksville/mesh/ui/map/components/MapViewWithLifecycle.kt b/app/src/main/java/com/geeksville/mesh/ui/map/components/MapViewWithLifecycle.kt index ea028529f..bd1a37eea 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/map/components/MapViewWithLifecycle.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/map/components/MapViewWithLifecycle.kt @@ -43,8 +43,8 @@ fun rememberMapViewWithLifecycle(context: Context): MapView { val powerManager = context.getSystemService(Context.POWER_SERVICE) as PowerManager @Suppress("DEPRECATION") - @SuppressLint("InvalidWakeLockTag") - val wakeLock = powerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, "ScreenLock") + val wakeLock = + powerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, "Meshtastic:MapViewLock") wakeLock.safeAcquire()