Skip to content

Commit 45bcd5e

Browse files
committed
PassCodeManager: fix compilation error with kotlin 1.7.10
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
1 parent 4119124 commit 45bcd5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/owncloud/android/authentication/PassCodeManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class PassCodeManager(private val preferences: AppPreferences, private val clock
121121
visibleActivitiesCounter--
122122
}
123123
val powerMgr = activity.getSystemService(Context.POWER_SERVICE) as PowerManager
124-
if ((isPassCodeEnabled() || deviceCredentialsAreEnabled(activity)) && !powerMgr?.isScreenOn) {
124+
if ((isPassCodeEnabled() || deviceCredentialsAreEnabled(activity)) && !powerMgr.isScreenOn) {
125125
activity.moveTaskToBack(true)
126126
}
127127
}

0 commit comments

Comments
 (0)