@Override
 public void onDestroy() {
   super.onDestroy();
   if (onNotificationClick != null)
     try {
       getSherlockActivity().unregisterReceiver(onNotificationClick);
       onNotificationClick = null;
     } catch (IllegalArgumentException e) { // if it's already been unregistered
       e.printStackTrace();
     }
 }