1
0
Fork 0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2025-10-05 02:39:29 +02:00

Update LeakCanary library

This commit is contained in:
TacoTheDank 2023-07-11 20:32:29 -04:00
parent e33bb676f9
commit db7de05f2b
3 changed files with 5 additions and 4 deletions

View file

@ -81,7 +81,8 @@ public abstract class BaseFragment extends Fragment {
public void onDestroy() {
super.onDestroy();
AppWatcher.INSTANCE.getObjectWatcher().watch(this);
AppWatcher.INSTANCE.getObjectWatcher().expectWeaklyReachable(
this, "Watch for leaks from destroyed fragments.");
}
/*//////////////////////////////////////////////////////////////////////////