pocorall / scaloid

Scaloid makes your Android code easy to understand and maintain.
Other
2.09k stars 163 forks source link

SArrayAdapter cannot be added to after initialization #132

Closed Mause closed 9 years ago

Mause commented 9 years ago

See https://stackoverflow.com/questions/3200551/unable-to-modify-arrayadapter-in-listview-unsupportedoperationexception for details

TL;DR: Android's ArrayAdapter must be initialized with a List if you want to be able to add items after initialization. The SArrayAdapter class forces Array use

EDIT: By added to I mean with ArrayAdaper.add and ArrayAdapter.addAll

pocorall commented 9 years ago

Thanks for reporting!

Mause commented 9 years ago

Thanks for fixing!