2php / eyes-free

Automatically exported from code.google.com/p/eyes-free
2 stars 1 forks source link

[Eyes-Free Shell] CursorIndexOutOfBoundsException in HomeLauncher.isScreenReaderActive() #113

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run HomeLaucher's isScreenReaderActive()  
http://code.google.com/p/eyes-free/source/browse/trunk/shell/src/com/google/marv
in/shell/HomeLauncher.java?spec=svn623&r=623

What is the expected output? What do you see instead?
We were supposed to check if a screen reader is active; we have  
android.database.CursorIndexOutOfBoundsException instead

What version of the product are you using? On what operating system?
TalkBack included in Jelly Bean (Android 4.1.1)

Please provide any additional information below.
It seems like the cursor for receiving the StatusProvider is empty, because 
cursor.moveToFirst() returns false

Original issue reported on code.google.com by pedro.pa...@gmail.com on 7 Aug 2012 at 2:57

GoogleCodeExporter commented 8 years ago
I'll check into this.  For some time we removed the status provider in the ICS+ 
version of TalkBack, since the new way of checking for Accessibility Services 
is through AccessibilityManager.

http://developer.android.com/reference/android/view/accessibility/AccessibilityM
anager.html

Original comment by caseybur...@google.com on 12 Aug 2012 at 3:31

GoogleCodeExporter commented 8 years ago

Original comment by alanv@google.com on 7 Dec 2012 at 6:46