@Override
 public void onDestroyView() {
   mList = null;
   mHandler.removeCallbacks(mRequestFocus);
   mHandler.removeMessages(PreferenceFragment.MSG_BIND_PREFERENCES);
   super.onDestroyView();
 }
示例#2
0
 /**
  * This method deletes all reference to a {@link Context} so {@link Activity} could be properly
  * recreated
  */
 @Override
 public void onDestroyView() {
   selectorBegin = textSelector.getBeginObject();
   selectorEnd = textSelector.getEndObject();
   selectorNoBegin = textSelector.isNoBegin();
   selectorNoEnd = textSelector.isNoEnd();
   if (mode != null) {
     mode.finish();
     mode = null;
   }
   super.onDestroyView();
   menu.destroyViews();
   editorScrollX = board.getEditorScrollX();
   editorScrollY = board.getEditorScrollY();
   lines = board.getLines();
   board.destroyViews();
   board = null;
   textSelector.destroy();
   textSelector = null;
 }