From 97d057a028eb054cb0140de078c2bf100af11a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Macias=20Garci=CC=81a?= Date: Tue, 1 Dec 2020 14:49:54 +0100 Subject: [PATCH] Add onDestroy override method on ImageViewProxy.java. Update version number --- android/manifest | 2 +- android/src/av/imageview/ImageViewProxy.java | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/android/manifest b/android/manifest index 416cb18..821cc32 100644 --- a/android/manifest +++ b/android/manifest @@ -2,7 +2,7 @@ # this is your module manifest and used by Titanium # during compilation, packaging, distribution, etc. # -version: 5.0.1 +version: 5.0.2 apiversion: 4 architectures: arm64-v8a armeabi-v7a x86 x86_64 description: av.imageview diff --git a/android/src/av/imageview/ImageViewProxy.java b/android/src/av/imageview/ImageViewProxy.java index 327f8d3..69c654f 100644 --- a/android/src/av/imageview/ImageViewProxy.java +++ b/android/src/av/imageview/ImageViewProxy.java @@ -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(); }