mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Fix: Nullify binding in MediaDetailPagerFragment to prevent memory leaks
This commit is contained in:
parent
1fb9783039
commit
151ab48b74
1 changed files with 6 additions and 0 deletions
|
|
@ -160,6 +160,12 @@ public class MediaDetailPagerFragment extends CommonsDaggerSupportFragment imple
|
|||
return binding.getRoot();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroyView() {
|
||||
super.onDestroyView();
|
||||
binding = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSaveInstanceState(Bundle outState) {
|
||||
super.onSaveInstanceState(outState);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue