use of net.osmand.plus.settings.fragments.ImportSettingsFragment in project Osmand by osmandapp.
the class RestoreDuplicatesFragment method importItems.
@Override
protected void importItems(boolean shouldReplace) {
super.importItems(shouldReplace);
if (settingsItems != null) {
Fragment target = getTargetFragment();
if (target instanceof ImportSettingsFragment) {
try {
ImportListener importListener = ((ImportSettingsFragment) target).getImportListener();
settingsHelper.importSettings(RESTORE_ITEMS_KEY, settingsItems, false, importListener);
} catch (IllegalStateException e) {
LOG.error(e.getMessage(), e);
}
}
}
}
Aggregations