Skip to content

Commit

Permalink
Fix npe when updating items
Browse files Browse the repository at this point in the history
Happend when trying to update accessibility label before views were created
  • Loading branch information
guyca committed Jan 16, 2020
1 parent 54f76ab commit 3436e58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ private void setTabAccessibilityLabel(int itemIndex, int currentItem) {
* @param useCallback boolean: Use or not the callback
*/
private void updateItems(final int itemIndex, boolean useCallback) {
for (int i = 0; i < items.size(); i++) {
for (int i = 0; i < views.size(); i++) {
setTabAccessibilityLabel(i, itemIndex);
}
if (currentItem == itemIndex) {
Expand Down

0 comments on commit 3436e58

Please sign in to comment.