mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-02-05 21:33:01 -05:00
fix: InvalidWakeLockTag
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user