mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: InvalidWakeLockTag
This commit is contained in:
parent
3922bfbffb
commit
a5822bb532
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue