/** * Subclasses should use this helper class to trigger start notifications * * @see ActivityListener */ protected void notifyStarted() { if (activityListeners == null) { return; } for (ActivityListener listener : activityListeners) { listener.started(this); } }
/** * Subclasses should use this helper class to trigger stop notifications * * @see ActivityListener */ protected void notifyStopped() { if (activityListeners == null) { return; } for (ActivityListener listener : activityListeners) { listener.stopped(this); } }