fix: InvalidWakeLockTag

This commit is contained in:
andrekir committed 2023-11-03 19:08:05 -03:00
1 parent 3922bfbffb
commit a5822bb532
1 file changed
+2 -2
@@ -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()