Skip to content

Commit

Permalink
Merge pull request #1 from jormagar/hotfix/android-memory-leak
Browse files Browse the repository at this point in the history
Add onDestroy override method on ImageViewProxy.java
  • Loading branch information
jormagar authored Dec 1, 2020
2 parents e468f5a + 97d057a commit 2e5f351
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions android/src/av/imageview/ImageViewProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ public TiUIView createView(Activity activity) {
return view;
}

@Override
public void onDestroy(Activity activity) {
super.onDestroy(activity);

this.activity = null;
}

protected AvImageView getView() {
return (AvImageView) this.getOrCreateView();
}
Expand Down

0 comments on commit 2e5f351

Please sign in to comment.