Export plugin items in osf
This commit is contained in:
parent
2f98f7c475
commit
5009e9d149
3 changed files with 5 additions and 5 deletions
|
@ -855,8 +855,9 @@ public class ImportHelper {
|
|||
iterator.remove();
|
||||
}
|
||||
}
|
||||
File pluginDir = new File(app.getAppPath(null), IndexConstants.PLUGINS_DIR + pluginItem.getPluginId());
|
||||
app.getSettingsHelper().exportPluginItems(pluginDir, null, items);
|
||||
String pluginId = pluginItem.getPluginId();
|
||||
File pluginDir = new File(app.getAppPath(null), IndexConstants.PLUGINS_DIR + pluginId);
|
||||
app.getSettingsHelper().exportSettings(pluginDir, "items", null, items, false);
|
||||
}
|
||||
};
|
||||
List<SettingsItem> pluginItems = new ArrayList<>(pluginItem.getPluginDependentItems());
|
||||
|
|
|
@ -42,7 +42,6 @@ import net.osmand.plus.helpers.AvoidSpecificRoads.AvoidRoadInfo;
|
|||
import net.osmand.plus.poi.PoiUIFilter;
|
||||
import net.osmand.plus.quickaction.QuickAction;
|
||||
import net.osmand.plus.quickaction.QuickActionRegistry;
|
||||
import net.osmand.plus.settings.bottomsheets.BasePreferenceBottomSheet;
|
||||
import net.osmand.plus.settings.ExportImportSettingsAdapter.Type;
|
||||
import net.osmand.plus.settings.bottomsheets.BasePreferenceBottomSheet;
|
||||
|
||||
|
@ -327,7 +326,7 @@ public class ExportProfileBottomSheet extends BasePreferenceBottomSheet {
|
|||
showExportProgressDialog();
|
||||
File tempDir = getTempDir();
|
||||
String fileName = profile.toHumanString();
|
||||
app.getSettingsHelper().exportSettings(tempDir, fileName, getSettingsExportListener(), prepareSettingsItemsForExport());
|
||||
app.getSettingsHelper().exportSettings(tempDir, fileName, getSettingsExportListener(), prepareSettingsItemsForExport(), true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -770,7 +770,7 @@ public class ProfileAppearanceFragment extends BaseSettingsFragment {
|
|||
tempDir.mkdirs();
|
||||
}
|
||||
app.getSettingsHelper().exportSettings(tempDir, mode.getStringKey(),
|
||||
getSettingsExportListener(), new SettingsHelper.ProfileSettingsItem(app, mode));
|
||||
getSettingsExportListener(), true, new SettingsHelper.ProfileSettingsItem(app, mode));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue