Use the SignalServiceNetworkAccess from ApplicationDependencies.

This commit is contained in:
Greyson Parrelli
2021-11-02 09:21:16 -04:00
parent f6542440c7
commit 8511d3576f
6 changed files with 9 additions and 7 deletions

View File

@@ -30,7 +30,7 @@ class VoiceNoteProximityWakeLockManager(
) : DefaultLifecycleObserver {
private val wakeLock: PowerManager.WakeLock? = if (Build.VERSION.SDK_INT >= 21) {
ServiceUtil.getPowerManager(activity).newWakeLock(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK, TAG)
ServiceUtil.getPowerManager(activity.applicationContext).newWakeLock(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK, TAG)
} else {
null
}