i have a static final list with Overriden Methods:
protected final ArrayList<ABC> objects = new ArrayList<ABC>() {
@Override
public void add(int index, ABC object) {
super.add(index, object);
notifyChanged();
}
@Override
public boolean remove(Object object) {
boolean b = super.remove(object);
notifyChanged();
return b;
}
@Override
public ABC remove(int index) {
ABC b = super.remove(index);
notifyChanged();
return b;
}
@Override
public boolean add(ABC object) {
boolean b = super.add(object);
notifyChanged();
return b;
}
};
notifyChanged will call notifyOnDataSetChanged on a (Android-)Adapter.
The problem now is, if i call objects.remove(object), my notifyChanged is not called. I tried with LogCat (Log-Console on Android, like System.out.println) and with debugging, it is definetly not called!
Anyone has an idea why?
Normally it should work...