@Override public void onPause() { super.onPause(); headerAdapter.setDelegate(null); itemAdapter.setDelegate(null); playlistHeaderAdapter.setDelegate(null); playlistItemAdapter.setDelegate(null); }
/** managed code : onResume and onPause add and remove delegate in those method */ @Override public void onResume() { super.onResume(); headerAdapter.setDelegate(this); itemAdapter.setDelegate(this); playlistHeaderAdapter.setDelegate(this); playlistItemAdapter.setDelegate(this); }