@Override
 public void onDestroy() {
   super.onDestroy();
   cleanupTasks();
   if (getActivity() != null) {
     if (getActivity() instanceof PostReplyActivity) {
     } else {
       ((ThreadDisplayActivity) getActivity()).refreshInfo();
       ((ThreadDisplayActivity) getActivity()).refreshThread();
     }
   }
 }
 @Override
 public void onStop() {
   super.onStop();
   if (!sendSuccessful) {
     if (mMessage
         .getText()
         .toString()
         .replaceAll("\\s", "")
         .equalsIgnoreCase(originalReplyData.replaceAll("\\s", ""))) {
       Log.i(TAG, "Message unchanged, discarding.");
       deleteReply(); // if the reply is unchanged, throw it out.
     } else {
       Log.i(TAG, "Message Unsent, saving.");
       saveReply();
     }
   }
   cleanupTasks();
 }
예제 #3
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   Log.e(TAG, "onDestroy");
   cleanupTasks();
 }
예제 #4
0
 @Override
 public void onStop() {
   super.onStop();
   if (DEBUG) Log.e(TAG, "onStop");
   cleanupTasks();
 }
예제 #5
0
 @Override
 public void onPause() {
   super.onPause();
   if (DEBUG) Log.e(TAG, "onPause");
   cleanupTasks();
 }
  @Override
  public void onPause() {
    super.onPause();

    cleanupTasks();
  }