-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Bug] Enabling accessibility feature (example talkback) causes app to crash on loading tabs tray #14540
Comments
Could you take a look at this @mcarare? I'm wondering if this is some fallout from the a11y changes we were making - I was also seeing these show up in the Google Play pre-launch report https://sentry.prod.mozaws.net/operations/fenix-fennec/?query=is%3Aunresolved+sealed |
As per this webpage on Android Developers Documentation: https://developer.android.com/reference/androidx/recyclerview/widget/ConcatAdapter
So, it looks like calling |
I will take a look at this. It was working just fine , but there were a great deal of changes in Tab Tray since I have implemented the fix for this: #11542.
The question is if we want to populate this info manually or completely remove code. It will mean screen readers will never announce tab position in list . |
Hi, I can reproduce the issue on Nightly 9/1 with:
Note:
Removing QA-needed until issue is fixed. |
Verified as fixed on Nightly 9/10 with the following devices:
Note: I was able to reproduce the crash on Beta and Release. |
Steps to reproduce
Expected behavior
I expect the app to not crash when accessibility features are enabled and you use the tabs tray in the app.
Actual behavior
The app crashes when the tabs tray is opened with the accessibilty feature, such as TalkBack, enabled.
It appears that the culprit for this crash is this chunk of code: https://github.com/mozilla-mobile/fenix/blob/master/app/src/main/java/org/mozilla/fenix/tabtray/TabTrayView.kt#L188
Somehow when
notifyDataSetChanged()
is called, I get an IndexOutOfBounds exception. When I remove that code, there is no crash. I am not sure what accessibility feature notify data set changed method call provides.The following is the error:
Device information
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: