@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(); }
@Override public void onDestroy() { super.onDestroy(); Log.e(TAG, "onDestroy"); cleanupTasks(); }
@Override public void onStop() { super.onStop(); if (DEBUG) Log.e(TAG, "onStop"); cleanupTasks(); }
@Override public void onPause() { super.onPause(); if (DEBUG) Log.e(TAG, "onPause"); cleanupTasks(); }
@Override public void onPause() { super.onPause(); cleanupTasks(); }