Skip to content

Activity Done - #136

Open
shahriar3174 wants to merge 1 commit into
karlmorris:masterfrom
shahriar3174:master
Open

Activity Done#136
shahriar3174 wants to merge 1 commit into
karlmorris:masterfrom
shahriar3174:master

Conversation

@shahriar3174

Copy link
Copy Markdown

This pull request fixes the "Index Out of Bounds" crash and logic errors introduced by the name deletion feature. The primary fix involves updating CustomAdapter to return names.size dynamically instead of a hardcoded value, ensuring the adapter stays in sync with the underlying data. Additionally, the deletion logic in MainActivity was refined to safely update the spinner selection using coerceAtMost, preventing crashes when the last item in the list is removed. I also implemented state handling to clear the TextView and disable the delete button once the list is empty, ensuring a stable and intuitive user experience.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant