Skip to content

Using deselect in onStartTabSelected throws IndexOutOfBounds exeption #47

Description

@iomagics

As the title says. Using NavigationTabBar#deselect when onStartTabSelected gets called.

It will not throw the error in onEndTabSelected. The stacktrace said the error came from line 868 and 877 in NavigationTabBar.java

I dug around a bit in your code and adding a && mIndex != INVALID_INDEX to the if statement, above the two mentioned lines, fixed the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions