Skip to content

Commit

Permalink
fix: Alert text retrieval (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Nov 1, 2023
1 parent 5485362 commit 9c97ddc
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,13 @@ object AlertHelpers {
else
permissionAlertButtonResIdPattern.toString()
return alertElements.toTypedArray()
.filter { it.resourceName != null && !it.resourceName.matches(alertButtonsResIdPattern.toRegex()) }
.filter { (it.text ?: "").isNotEmpty() }
.joinToString(separator = "\n")
.filter {
it.resourceName != null && !it.resourceName.matches(
alertButtonsResIdPattern.toRegex()
)
}
.filter { (it.text ?: "").isNotEmpty() }
.joinToString(separator = "\n") { it.text }
}

private fun buttonResIdByIdx(index: Int): String {
Expand Down

0 comments on commit 9c97ddc

Please sign in to comment.