Skip to content

Commit

Permalink
Remove unused code that is logging error level.
Browse files Browse the repository at this point in the history
  • Loading branch information
skykelsey committed Apr 26, 2016
1 parent 93df446 commit 7dd2bf7
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7dd2bf7

Please sign in to comment.