Update url
This commit is contained in:
parent
2f841bf23f
commit
3bbc63e071
3 changed files with 5 additions and 3 deletions
|
@ -27,7 +27,7 @@ public class AnalyticsHelper extends SQLiteOpenHelper {
|
||||||
|
|
||||||
private final static Log LOG = PlatformUtil.getLog(AnalyticsHelper.class);
|
private final static Log LOG = PlatformUtil.getLog(AnalyticsHelper.class);
|
||||||
|
|
||||||
private final static String ANALYTICS_UPLOAD_URL = "https://test.osmand.net/api/submit_analytics";
|
private final static String ANALYTICS_UPLOAD_URL = "https://osmand.net/api/submit_analytics";
|
||||||
private final static String ANALYTICS_FILE_NAME = "analytics.json";
|
private final static String ANALYTICS_FILE_NAME = "analytics.json";
|
||||||
|
|
||||||
private final static int DATA_PARCEL_SIZE = 500; // 500 events
|
private final static int DATA_PARCEL_SIZE = 500; // 500 events
|
||||||
|
|
|
@ -4,6 +4,7 @@ import android.view.View;
|
||||||
import androidx.core.content.ContextCompat;
|
import androidx.core.content.ContextCompat;
|
||||||
import net.osmand.AndroidNetworkUtils;
|
import net.osmand.AndroidNetworkUtils;
|
||||||
import net.osmand.PlatformUtil;
|
import net.osmand.PlatformUtil;
|
||||||
|
import net.osmand.plus.BuildConfig;
|
||||||
import net.osmand.plus.R;
|
import net.osmand.plus.R;
|
||||||
import net.osmand.plus.activities.MapActivity;
|
import net.osmand.plus.activities.MapActivity;
|
||||||
import net.osmand.util.Algorithms;
|
import net.osmand.util.Algorithms;
|
||||||
|
@ -12,7 +13,6 @@ import org.json.JSONException;
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
|
|
||||||
public class IPFSImageCard extends ImageCard {
|
public class IPFSImageCard extends ImageCard {
|
||||||
private static final String BASE_URL = "https://test.openplacereviews.org/api/ipfs/image-ipfs?cid=";
|
|
||||||
private static final Log LOG = PlatformUtil.getLog(IPFSImageCard.class);
|
private static final Log LOG = PlatformUtil.getLog(IPFSImageCard.class);
|
||||||
|
|
||||||
public IPFSImageCard(MapActivity mapActivity, JSONObject imageObject) {
|
public IPFSImageCard(MapActivity mapActivity, JSONObject imageObject) {
|
||||||
|
@ -23,6 +23,7 @@ public class IPFSImageCard extends ImageCard {
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
LOG.error(e);
|
LOG.error(e);
|
||||||
}
|
}
|
||||||
|
String BASE_URL = mapActivity.getString(R.string.opr_base_url);
|
||||||
url = BASE_URL + cid;
|
url = BASE_URL + cid;
|
||||||
imageHiresUrl = BASE_URL + cid;
|
imageHiresUrl = BASE_URL + cid;
|
||||||
imageUrl = BASE_URL + cid;
|
imageUrl = BASE_URL + cid;
|
||||||
|
|
|
@ -18,6 +18,7 @@ import androidx.annotation.Nullable;
|
||||||
import androidx.fragment.app.FragmentActivity;
|
import androidx.fragment.app.FragmentActivity;
|
||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
import net.osmand.PlatformUtil;
|
import net.osmand.PlatformUtil;
|
||||||
|
import net.osmand.plus.BuildConfig;
|
||||||
import net.osmand.plus.R;
|
import net.osmand.plus.R;
|
||||||
import net.osmand.plus.UiUtilities;
|
import net.osmand.plus.UiUtilities;
|
||||||
import net.osmand.plus.base.BaseOsmAndFragment;
|
import net.osmand.plus.base.BaseOsmAndFragment;
|
||||||
|
@ -74,7 +75,7 @@ public class OprStartFragment extends BaseOsmAndFragment {
|
||||||
private void setURLSpan(View v) {
|
private void setURLSpan(View v) {
|
||||||
String desc = requireContext().getString(R.string.register_on_openplacereviews_desc);
|
String desc = requireContext().getString(R.string.register_on_openplacereviews_desc);
|
||||||
SpannableString ss = new SpannableString(desc);
|
SpannableString ss = new SpannableString(desc);
|
||||||
ss.setSpan(new URLSpanNoUnderline("https://" + openPlaceReviewsUrl), desc.indexOf(openPlaceReviewsUrl),
|
ss.setSpan(new URLSpanNoUnderline(getActivity().getString(R.string.opr_base_url)), desc.indexOf(openPlaceReviewsUrl),
|
||||||
desc.indexOf(openPlaceReviewsUrl) + openPlaceReviewsUrl.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);
|
desc.indexOf(openPlaceReviewsUrl) + openPlaceReviewsUrl.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);
|
||||||
v.<TextView>findViewById(R.id.start_opr_description).setText(ss);
|
v.<TextView>findViewById(R.id.start_opr_description).setText(ss);
|
||||||
v.<TextView>findViewById(R.id.start_opr_description).setMovementMethod(LinkMovementMethod.getInstance());
|
v.<TextView>findViewById(R.id.start_opr_description).setMovementMethod(LinkMovementMethod.getInstance());
|
||||||
|
|
Loading…
Reference in a new issue