public void wasDestroyed(Activity activity) {
    liveActivities.remove(activity);

    if (currentActivity == activity) {
      currentActivity = null;
    }
  }
Records the given {@code Activity} and assigns it an ID.
selendroid-server/src/main/java/io/selendroid/server/android/ActivitiesReporter.java