diff --git a/droid4me/VERSION.txt b/droid4me/VERSION.txt
index 58073ef8..acdc3f1b 100755
--- a/droid4me/VERSION.txt
+++ b/droid4me/VERSION.txt
@@ -1 +1 @@
-2.4.1
\ No newline at end of file
+2.4.2
\ No newline at end of file
diff --git a/droid4me/pom.xml b/droid4me/pom.xml
index ebb049ed..f3b189d4 100644
--- a/droid4me/pom.xml
+++ b/droid4me/pom.xml
@@ -11,7 +11,7 @@
droid4me
droid4me
- 2.4.1
+ 2.4.2
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/debug/Droid4meDebugInterceptor.java b/droid4me/src/com/smartnsoft/droid4me/debug/Droid4meDebugInterceptor.java
index c3aaf555..48a707fa 100644
--- a/droid4me/src/com/smartnsoft/droid4me/debug/Droid4meDebugInterceptor.java
+++ b/droid4me/src/com/smartnsoft/droid4me/debug/Droid4meDebugInterceptor.java
@@ -191,18 +191,7 @@ public void onLifeCycleEvent(final Activity activity, Object component, Intercep
{
if (event == InterceptorEvent.onDestroy)
{
- // We remove the popup window
- final DebugAggregate debugAggregate = getDebugAggregate(false, activity);
- if (debugAggregate != null)
- {
- final PopupWindow popupWindow = debugAggregate.getPopupWindow(activity.getApplicationContext(), false, null);
- if (popupWindow != null)
- {
- popupWindow.dismiss();
- }
- debugAggregate.onDestroy();
- discardDebugAggregate(activity);
- }
+ dismissPopupWindow(activity);
}
else
{
@@ -231,7 +220,23 @@ public void run()
}
}
- private DebugAggregate getDebugAggregate(boolean createIfNecessary, Activity activity)
+ protected void dismissPopupWindow(Activity activity)
+ {
+ // We remove the popup window
+ final DebugAggregate debugAggregate = getDebugAggregate(false, activity);
+ if (debugAggregate != null)
+ {
+ final PopupWindow popupWindow = debugAggregate.getPopupWindow(activity.getApplicationContext(), false, null);
+ if (popupWindow != null)
+ {
+ popupWindow.dismiss();
+ }
+ debugAggregate.onDestroy();
+ discardDebugAggregate(activity);
+ }
+ }
+
+ protected DebugAggregate getDebugAggregate(boolean createIfNecessary, Activity activity)
{
DebugAggregate debugAggregate = Droid4meDebugInterceptor.debugAggregates.get(activity);
if (createIfNecessary == true)
@@ -245,7 +250,7 @@ private DebugAggregate getDebugAggregate(boolean createIfNecessary, Activity act
return debugAggregate;
}
- private void discardDebugAggregate(Activity activity)
+ protected void discardDebugAggregate(Activity activity)
{
Droid4meDebugInterceptor.debugAggregates.remove(activity);
}