diff --git a/OsmAnd/res/layout/context_menu_card_image.xml b/OsmAnd/res/layout/context_menu_card_image.xml index fe2f2fefd7..f29f59ff39 100644 --- a/OsmAnd/res/layout/context_menu_card_image.xml +++ b/OsmAnd/res/layout/context_menu_card_image.xml @@ -28,7 +28,7 @@ android:textColor="?attr/color_dialog_buttons" android:textSize="@dimen/default_list_text_size" android:visibility="gone" - tools:text="http://osmand.net/images/123456789012.jpg" + tools:text="https://osmand.net/images/123456789012.jpg" tools:visibility="visible"/> diff --git a/OsmAnd/src/net/osmand/plus/search/SendSearchQueryBottomSheet.java b/OsmAnd/src/net/osmand/plus/search/SendSearchQueryBottomSheet.java index bfb171ecce..27e8b4f2b8 100644 --- a/OsmAnd/src/net/osmand/plus/search/SendSearchQueryBottomSheet.java +++ b/OsmAnd/src/net/osmand/plus/search/SendSearchQueryBottomSheet.java @@ -44,7 +44,8 @@ public class SendSearchQueryBottomSheet extends MenuBottomSheetDialogFragment { if (Algorithms.isEmpty(searchQuery)) { return; } - params.put(searchQuery, searchLocation); + params.put("query", searchQuery); + params.put("location", searchLocation); items.add(new TitleItem(getString(R.string.send_search_query))); final int themeRes = nightMode ? R.style.OsmandDarkTheme : R.style.OsmandLightTheme; final TextView textView = (TextView) View.inflate(new ContextThemeWrapper(getContext(), themeRes), @@ -73,7 +74,7 @@ public class SendSearchQueryBottomSheet extends MenuBottomSheetDialogFragment { Toast.makeText(app, R.string.internet_not_available, Toast.LENGTH_LONG).show(); dismiss(); } else { - AndroidNetworkUtils.sendRequestAsync(app, "http://osmand.net/api/missing_search", params, + AndroidNetworkUtils.sendRequestAsync(app, "https://osmand.net/api/missing_search", params, null, true, true, new AndroidNetworkUtils.OnRequestResultListener() { @Override public void onResult(String result) {