armcha / armcha/Space-Navigation-View

Can't show badge?

Open
#68 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2k
Forks
376
PR merge metrics
No merged PRs in 30d

Description

I got an issue, I add line "spaceNavigationView.showBadgeAtIndex(2,3,getResources().getColor(R.color.colorAccent));" to onCreate of Activity to show badge, so it ocour FC issue with log "java.lang.IndexOutOfBoundsException: Index: 2, Size: 0", through I've add 4 item before, what should i do?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the call to spaceNavigationView.showBadgeAtIndex(2, 3, ...) from Activity.onCreate after adding four items, then inspect how that method accesses the navigation items. Done means the call no longer throws IndexOutOfBoundsException and the badge appears at the requested index.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.