Log.d(LOGTAG, "Migrating API");
String user = prefs.getString(r.getString(R.string.config_username_key), "");
String pass = prefs.getString(r.getString(R.string.config_password_key), "");
String name = "OpenStreetMap";
Log.d(LOGTAG, "Adding default URL with user '" + user + "'");
<BUG>addAPI(db, ID_DEFAULT, name, Urls.DEFAULT_API, null, null, user, pass, ID_DEFAULT, true, true);
Log.d(LOGTAG, "Adding default URL without https");
addAPI(db, ID_DEFAULT_NO_HTTPS, "OpenStreetMap no https", Urls.DEFAULT_API_NO_HTTPS, null, null, "", "", ID_DEFAULT_NO_HTTPS, true, true);
Log.d(LOGTAG, "Selecting default API");</BUG>
selectAPI(db,ID_DEFAULT);

Log.d(LOGTAG, "Migrating API");
String user = prefs.getString(r.getString(R.string.config_username_key), "");
String pass = prefs.getString(r.getString(R.string.config_password_key), "");
String name = "OpenStreetMap";
Log.d(LOGTAG, "Adding default URL with user '" + user + "'");
addAPI(db, ID_DEFAULT, name, Urls.DEFAULT_API, null, null, user, pass, ID_DEFAULT, true);
Log.d(LOGTAG, "Adding default URL without https");
addAPI(db, ID_DEFAULT_NO_HTTPS, "OpenStreetMap no https", Urls.DEFAULT_API_NO_HTTPS, null, null, "", "", ID_DEFAULT_NO_HTTPS, true);
Log.d(LOGTAG, "Selecting default API");
selectAPI(db,ID_DEFAULT);
