我有这种情况
onResume 活动:
@Override
protected void onResume() {
if (adapter1!=null) adapter1.notifyDataSetChanged();
if (adapter2!=null) adapter2.notifyDataSetChanged();
if (adapter3!=null) adapter3.notifyDataSetChanged();
super.onResume();
}
适配器已定义为:
public class ListCursorAdapter extends SimpleCursorAdapter {
Cursor c;
/* (non-Javadoc)
* @see android.widget.CursorAdapter#onContentChanged()
*/
@Override
protected void onContentChanged() {
// this is not called
if (c!=null) c.requery();
super.onContentChanged();
}
}
尽管发出了 onResume 和对适配器的调用,但不会触发 onContentChanged 事件。怎么了?