From 7dd2bf7137fea3685e2c9d97335f8ddde240174b Mon Sep 17 00:00:00 2001 From: skykelsey Date: Tue, 26 Apr 2016 13:13:02 -0700 Subject: [PATCH] Remove unused code that is logging error level. --- .../lifecycle/ApptentiveActivityLifecycleCallbacks.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apptentive/src/main/java/com/apptentive/android/sdk/lifecycle/ApptentiveActivityLifecycleCallbacks.java b/apptentive/src/main/java/com/apptentive/android/sdk/lifecycle/ApptentiveActivityLifecycleCallbacks.java index 07baeb927..5c4a5e553 100644 --- a/apptentive/src/main/java/com/apptentive/android/sdk/lifecycle/ApptentiveActivityLifecycleCallbacks.java +++ b/apptentive/src/main/java/com/apptentive/android/sdk/lifecycle/ApptentiveActivityLifecycleCallbacks.java @@ -19,7 +19,6 @@ public class ApptentiveActivityLifecycleCallbacks implements Application.ActivityLifecycleCallbacks { - private AtomicInteger runningActivities = new AtomicInteger(0); private AtomicInteger foregroundActivities = new AtomicInteger(0); private Runnable checkFgBgRoutine; @@ -85,13 +84,7 @@ public void run() { @Override public void onActivityDestroyed(final Activity activity) { - ApptentiveInternal.getInstance().onActivityDestroyed(activity); - - if (runningActivities.decrementAndGet() < 0) { - ApptentiveLog.e("Incorrect number of running Activities encountered. Resetting to 0."); - runningActivities.set(0); - } } @Override