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:
parent
e33bb676f9
commit
db7de05f2b
3 changed files with 5 additions and 4 deletions
|
@ -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.");
|
||||
}
|
||||
|
||||
/*//////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue