Skip to content

Commit

Permalink
ISSUE-656: fix detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
OvsyannikovMaksim committed Aug 20, 2024
1 parent 8a79a7e commit 9dc0052
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class SystemDialogSafetyProviderImpl(
private fun isAndroidSystemDetected(): Boolean {
with(uiDevice) {
var isSystemDialogVisible = if (systemDialogsSafetyParams.shouldIgnorePermissionDialogs) {
SystemDialogSafetyPattern.values().filter { it != SystemDialogSafetyPattern.PERMISSION_API30 && it != SystemDialogSafetyPattern.PERMISSION_API23}
SystemDialogSafetyPattern.values().filter { it != SystemDialogSafetyPattern.PERMISSION_API30 && it != SystemDialogSafetyPattern.PERMISSION_API23 }
.any { isVisible(By.pkg(it.pattern).clazz(FrameLayout::class.java)) }
} else {
SystemDialogSafetyPattern.values().any { isVisible(By.pkg(it.pattern).clazz(FrameLayout::class.java)) }
Expand Down

0 comments on commit 9dc0052

Please sign in to comment.