i below is my onDestroy, onDestroyView and onDetach of my fragment class:
@Override
public void onDestroyView() {
super.onDestroyView();
onDestroy();
}
@Override
public void onDestroy() {
super.onDestroy();
Log.d("DD", "onDestroy onDestroy onDestroy onDestroy");
try {
if (m_reader != null) {
m_reader.PDFClose();
}
m_reader = null;
if (m_doc != null) {
m_doc.Close();
}
m_doc = null;
// if (mContentView != null)
// mContentView.removeAllViews();
// mContentView = null;
/*
* if (m_layout != null) m_layout.removeAllViews(); m_layout = null;
*/
Global.RemoveTmp();
// super.onDestroy();
// System.gc();
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public void onDetach() {
super.onDetach();
onDestroy();
}
i had call
and
in onDestroy. issue still persist.
FYI, this issue happen frequently after i implement
encryption