@Override
        protected void onPostExecute(final FolderUtils.FolderProcessResult result) {
            Log.i("[MapThemeFolderSync] Finished synchronization (state=" + afterSyncRequest + ")");
            //show toast only if something actually happened
            if (result != null && result.filesModified > 0) {
                showToast(R.string.mapthemes_foldersync_finished_toast,
                        LocalizationUtils.getString(R.string.persistablefolder_offline_maps_themes),
                        Formatter.formatDuration(System.currentTimeMillis() - startTime),
                        result.filesModified, LocalizationUtils.getPlural(R.plurals.file_count, result.filesInSource, "file(s)"));
            }
            Log.i("[MapThemeFolderSync] Finished synchronization callback");
        }
Requests for a running task to redo sync after finished. May fail if task is already done, but in this case the task may safely be discarted
main/src/main/java/cgeo/geocaching/maps/mapsforge/v6/RenderThemeHelper.java