Пример #1
0
 @Override
 public void onPause() {
   super.onPause();
   headerAdapter.setDelegate(null);
   itemAdapter.setDelegate(null);
   playlistHeaderAdapter.setDelegate(null);
   playlistItemAdapter.setDelegate(null);
 }
Пример #2
0
 /** 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);
 }