-Added toggle for enabling leak canary heap dump.

This commit is contained in:
John Zhen Mo 2018-02-10 11:07:17 -08:00
parent 622d698ff8
commit 829059ea01
7 changed files with 79 additions and 2 deletions

View file

@ -71,8 +71,9 @@ public abstract class BaseFragment extends Fragment {
@Override
public void onDestroy() {
super.onDestroy();
RefWatcher refWatcher = App.getRefWatcher(getActivity());
refWatcher.watch(this);
if (refWatcher != null) refWatcher.watch(this);
}
/*//////////////////////////////////////////////////////////////////////////