Skip to content

Commit

Permalink
Merge pull request #114 from NeoA11y/bugfix/ISSUE#109-read-empty-edit…
Browse files Browse the repository at this point in the history
…-text

Read empty edit text
  • Loading branch information
Irineu333 authored Nov 27, 2023
2 parents 885e92f + 14fe2a6 commit df538c5
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

## Describe the bug:

## To Reproduce:

## Expected behavior

## Screenshots:

## Stack trace (to dev):

## More infos:
App version:
Android version:
Device:
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: feature
assignees: ''

---


5 changes: 5 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Description

### Improvements

### Fixed issues
8 changes: 6 additions & 2 deletions app/src/main/java/com/neo/speaktouch/utils/NodeValidator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ object NodeValidator {
/**
* @return true if is mandatory read [node]'s children
*/
fun mustReadChildren(node: AccessibilityNodeInfoCompat) : Boolean {
fun mustReadChildren(node: AccessibilityNodeInfoCompat): Boolean {

if (mustReadContent(node)) return false

Expand All @@ -104,7 +104,11 @@ object NodeValidator {
*/
fun hasContentToRead(node: AccessibilityNodeInfoCompat): Boolean {

return hasTextToRead(node) || node.isCheckable
if (node.isCheckable) return true

if (node.isEditable) return true // TODO: Consider removing after issue #88

return hasTextToRead(node)
}

/**
Expand Down

0 comments on commit df538c5

Please sign in to comment.