@Override
        public void handleRegularMessage(final Message msg) {
            if (msg.what == LOCAL) {
                localFinished = true;
            } else {
                remoteFinished = true;
            }

            if (localFinished && (remoteFinished || !resetRemote)) {
                final CacheDetailActivity cacheDetailActivity = (CacheDetailActivity) activityRef.get();
                if (cacheDetailActivity != null) {
                    cacheDetailActivity.notifyDataSetChanged();
                }
                dismissProgress();
            }
        }
A dialog to allow the user to select reseting coordinates local/remote/both.
main/src/main/java/cgeo/geocaching/CacheDetailActivity.java