Exemplo n.º 1
0
 @Override
 public void onPageHidden() {
   autosave();
   if (getActivity() != null && mMessage != null) {
     InputMethodManager imm =
         (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
     imm.hideSoftInputFromWindow(mMessage.getApplicationWindowToken(), 0);
   }
 }
Exemplo n.º 2
0
 @Override
 public void onDestroyView() {
   super.onDestroyView();
   Log.e(TAG, "onDestroyView");
   autosave();
   getLoaderManager().destroyLoader(Constants.REPLY_LOADER_ID);
   getLoaderManager().destroyLoader(Constants.MISC_LOADER_ID);
   getActivity().getContentResolver().unregisterContentObserver(mThreadObserver);
   mMessage = null;
 }