From fcac04b3bac8245cdb716c04c31215106488aa83 Mon Sep 17 00:00:00 2001 From: Antoine Gerard Date: Wed, 27 Jul 2016 16:40:14 +0200 Subject: [PATCH] FSS-153 #time 1h Working on the memory leak caused by the interceptor in big app like LCI --- droid4me/VERSION.txt | 2 +- droid4me/pom.xml | 2 +- droid4me/src/com/smartnsoft/droid4me/app/Droid4mizer.java | 1 - .../droid4me/debug/Droid4meDebugInterceptor.java | 7 +++++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/droid4me/VERSION.txt b/droid4me/VERSION.txt index b978f9a2..62e64205 100755 --- a/droid4me/VERSION.txt +++ b/droid4me/VERSION.txt @@ -1 +1 @@ -2.4.6.002-SNAPSHOT \ No newline at end of file +2.4.6 \ No newline at end of file diff --git a/droid4me/pom.xml b/droid4me/pom.xml index 1dd08884..5cf8443d 100644 --- a/droid4me/pom.xml +++ b/droid4me/pom.xml @@ -15,7 +15,7 @@ droid4me droid4me - 2.4.6.002-SNAPSHOT + 2.4.6 jar droid4me is a framework library dedicated to the development of Android applications. https://github.com/smartnsoft/droid4me diff --git a/droid4me/src/com/smartnsoft/droid4me/app/Droid4mizer.java b/droid4me/src/com/smartnsoft/droid4me/app/Droid4mizer.java index 24ed7431..7f96f43e 100644 --- a/droid4me/src/com/smartnsoft/droid4me/app/Droid4mizer.java +++ b/droid4me/src/com/smartnsoft/droid4me/app/Droid4mizer.java @@ -248,7 +248,6 @@ public final int getOnSynchronizeDisplayObjectsCount() { return stateContainer.getOnSynchronizeDisplayObjectsCount(); } - ​ /* * Indicates whether the entity has been restarted due to a configuruation change, or being restored from a saved state. * diff --git a/droid4me/src/com/smartnsoft/droid4me/debug/Droid4meDebugInterceptor.java b/droid4me/src/com/smartnsoft/droid4me/debug/Droid4meDebugInterceptor.java index faf5d61d..a5d8c35d 100644 --- a/droid4me/src/com/smartnsoft/droid4me/debug/Droid4meDebugInterceptor.java +++ b/droid4me/src/com/smartnsoft/droid4me/debug/Droid4meDebugInterceptor.java @@ -278,9 +278,12 @@ public void run() } } } - else if (event == InterceptorEvent.onStop || event == InterceptorEvent.onPause) + else if (event == InterceptorEvent.onStop) { - discardDebugAggregate(activity); + if (activity != null) + { + dismissPopupWindow(activity); + } } }