Skip to content

Commit

Permalink
Merge branch 'osmandapp:master' into hardy_Afa+thres
Browse files Browse the repository at this point in the history
  • Loading branch information
sonora authored Nov 12, 2023
2 parents 70ad2f5 + 5b44079 commit 105c41c
Show file tree
Hide file tree
Showing 107 changed files with 1,803 additions and 1,135 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ public interface OsmAndCustomizationConstants {
String FRAGMENT_WHATS_NEW_ID = FRAGMENT_ID + "whats_new";
String FRAGMENT_SEND_ANALYTICS_ID = FRAGMENT_ID + "send_analytics";
String FRAGMENT_DRAWER_ID = FRAGMENT_ID + "drawer";
String FRAGMENT_TRIPLTEK_PROMO_ID = FRAGMENT_ID + "tripltek_promo";

//Map Context Menu rows:
String MAP_CONTEXT_MENU_ROWS = "context.menu.rows.";
Expand Down
15 changes: 15 additions & 0 deletions OsmAnd/res/drawable/ic_action_dev_camera_elevation.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M12,3C12,2.4477 11.5523,2 11,2H5C4.4477,2 4,2.4477 4,3L4,6C4,6.5523 4.4477,7 5,7L7,7L6,9L10,9L9,7L11,7C11.5523,7 12,6.5523 12,6V3Z"
android:fillColor="#727272"/>
<path
android:pathData="M12,12C6.4771,12 2,16.4772 2,22H22C22,20.0513 21.4426,18.2328 20.4786,16.6952L19.1677,18.443C19.4125,18.9354 19.6081,19.4565 19.748,20H10C10.5523,20 11,19.5523 11,19V17H13C13.2332,17 13.457,16.9601 13.6651,16.8868L12.4,15.2C12.1354,14.8472 12.0001,14.4249 12,14L12,12Z"
android:fillColor="#727272"/>
<path
android:pathData="M20,7H18V14H20L17,18L14,14H16V7H14L17,3L20,7Z"
android:fillColor="#727272"/>
</vector>
37 changes: 37 additions & 0 deletions OsmAnd/res/drawable/ic_action_gift_colored.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M4,7H20V20C20,21.1046 19.1046,22 18,22H6C4.8954,22 4,21.1046 4,20V7Z"
android:strokeAlpha="0.5"
android:fillColor="#5714CC"
android:fillAlpha="0.5"/>
<path
android:pathData="M3,7V10H4V20C4,21.1046 4.8954,22 6,22H18C19.1046,22 20,21.1046 20,20V10H21V7H3ZM6,10H18V20H6V10Z"
android:fillColor="#5714CC"
android:fillType="evenOdd"/>
<path
android:pathData="M6,5C6,3.3431 7.3432,2 9,2C10.5048,2 11.7509,3.108 11.9669,4.5527L12,4.5858L12.0331,4.5527C12.2491,3.108 13.4952,2 15,2C16.6569,2 18,3.3431 18,5C18,6.525 16.8622,7.7842 15.3892,7.975L17.7071,10.2929L16.2929,11.7071L13,8.4142V20H11V8.4142L7.7071,11.7071L6.2929,10.2929L8.6108,7.975C7.1378,7.7842 6,6.525 6,5ZM9,4C9.5523,4 10,4.4477 10,5C10,5.5523 9.5523,6 9,6C8.4477,6 8,5.5523 8,5C8,4.4477 8.4477,4 9,4ZM15,4C15.5523,4 16,4.4477 16,5C16,5.5523 15.5523,6 15,6C14.4477,6 14,5.5523 14,5C14,4.4477 14.4477,4 15,4Z"
android:fillType="evenOdd">
<aapt:attr name="android:fillColor">
<gradient
android:startY="2"
android:startX="12"
android:endY="20"
android:endX="12"
android:type="linear">
<item android:offset="0" android:color="#FFFFC30D"/>
<item android:offset="1" android:color="#FFFF8800"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M9,6C9.5523,6 10,5.5523 10,5C10,4.4477 9.5523,4 9,4C8.4477,4 8,4.4477 8,5C8,5.5523 8.4477,6 9,6Z"
android:fillColor="#CC6D00"/>
<path
android:pathData="M15,6C15.5523,6 16,5.5523 16,5C16,4.4477 15.5523,4 15,4C14.4477,4 14,4.4477 14,5C14,5.5523 14.4477,6 15,6Z"
android:fillColor="#CC6D00"/>
</vector>
1 change: 0 additions & 1 deletion OsmAnd/res/layout/coordinates_widget.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/activity_background_color_dark"
android:clickable="true"
android:minHeight="@dimen/map_address_height"
tools:ignore="KeyboardInaccessibleWidget">
Expand Down
8 changes: 8 additions & 0 deletions OsmAnd/res/layout/fragment_purchase_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@
android:id="@+id/osmand_live"
layout="@layout/preference_button" />

<include
android:id="@+id/promo_divider"
layout="@layout/divider_half_item" />

<include
android:id="@+id/promo_details"
layout="@layout/preference_button" />

<include layout="@layout/card_bottom_divider"/>

</LinearLayout>
Expand Down
86 changes: 86 additions & 0 deletions OsmAnd/res/layout/fragment_tripltek_promo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="true"
android:focusable="true"
android:orientation="vertical">

<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/list_background_color">

<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_height" />

</com.google.android.material.appbar.AppBarLayout>

<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent">

<ScrollView
android:id="@+id/scroll_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:overScrollMode="never"
android:scrollbars="none">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/list_background_color"
android:orientation="vertical">

<androidx.appcompat.widget.AppCompatImageView
android:layout_width="@dimen/setting_list_item_large_height"
android:layout_height="@dimen/setting_list_item_large_height"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="@dimen/horizontal_divider_height"
android:src="@drawable/ic_action_gift_colored" />

<net.osmand.plus.widgets.TextViewEx
android:id="@+id/title"
style="@style/TitleStyle.Medium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/content_padding"
android:gravity="center"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_title_line_height"
tools:text="@string/tripltek_promo" />

<net.osmand.plus.widgets.TextViewEx
android:id="@+id/description"
style="@style/TitleStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/content_padding"
android:layout_marginBottom="@dimen/content_padding"
android:gravity="center"
android:textColor="?android:textColorPrimary"
tools:text="@string/tripltek_promo_description" />

<LinearLayout
android:id="@+id/items_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/content_padding_extra_large"
tools:listitem="@layout/purchase_dialog_list_item" />

</LinearLayout>

</ScrollView>

<include layout="@layout/control_bottom_buttons" />

</FrameLayout>

</LinearLayout>
2 changes: 2 additions & 0 deletions OsmAnd/res/values-be/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5073,4 +5073,6 @@
<string name="shared_string_action">Дзеянне</string>
<string name="shared_string_trash">Сметніца</string>
<string name="key_event_category_actions">Дзеянні</string>
<string name="about_osmand">Пра OsmAnd</string>
<string name="free_versions">Бясплатныя версіі</string>
</resources>
13 changes: 10 additions & 3 deletions OsmAnd/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3124,7 +3124,7 @@
<string name="pref_selected_by_default_for_profiles">Für Profile wird als Vorgabe diese Einstellung gewählt: %s</string>
<string name="change_default_settings">Einstellung ändern</string>
<string name="discard_changes">Änderung verwerfen</string>
<string name="apply_to_current_profile">Nur auf „%1$s“ anwenden</string>
<string name="apply_to_current_profile">Nur auf Profil „%1$s“ anwenden</string>
<string name="apply_to_all_profiles">Auf alle Profile anwenden</string>
<string name="analytics_pref_title">Analyseinstrumente</string>
<string name="turn_screen_on_info">Karte während der Navigation auf dem Sperrbildschirm anzeigen.</string>
Expand Down Expand Up @@ -4666,7 +4666,7 @@
<string name="gps_info_widget_desc">Zeigt die Anzahl der aktuell sichtbaren und verwendeten Satelliten an.</string>
<string name="coordinates_widget_desc">Zeigt die geografischen Koordinaten des aktuellen Standorts an.</string>
<string name="audio_video_notes_desc">Bietet schnellen Zugriff zum Starten/Stoppen einer Audio-, Video- oder Fotonotiz.</string>
<string name="bearing_desc">Zeigt die absolute oder relative Peilung zu einem Ziel in Winkeleinheiten an (im Modus 180 Grad, 360 Grad oder Milliradian).</string>
<string name="bearing_desc">Zeigt die absolute oder relative Peilung zu einem Ziel in Winkeleinheiten an (im Modus 180 Grad, 360 Grad oder Milliradiant).</string>
<string name="shared_string_widget">Widget</string>
<string name="route_maneuvers">Routenmanöver</string>
<string name="navigation_points">Navigationspunkte</string>
Expand Down Expand Up @@ -5524,7 +5524,7 @@
<string name="not_specified">Nicht angegeben</string>
<string name="key_event_action_zoom_in">Hineinzoomen</string>
<string name="key_event_action_change_map_orientation">Kartenorientierung ändern</string>
<string name="press_button_to_link_with_action">Drücken Sie die Taste auf Ihrem Gerät, um sie mit der Aktion zu verbinden: %1$s</string>
<string name="press_button_to_link_with_action">Drücken Sie die Schaltfläche auf Ihrem Gerät, um sie der Aktion zuzuweisen: %1$s</string>
<string name="deletion_error">Löschungsfehler</string>
<string name="shared_string_button">Schaltfläche</string>
<string name="change_key_binding">Tastenbelegung ändern</string>
Expand Down Expand Up @@ -5555,4 +5555,11 @@
<string name="key_event_action_move_to_my_location">Zu meinem Standort bewegen</string>
<string name="download_to_device">Auf das Gerät herunterladen</string>
<string name="key_event_action_move_down">Nach unten bewegen</string>
<string name="remove_widget_first">Bitte entfernen Sie zuerst das Widget</string>
<string name="add_row">Zeile hinzufügen</string>
<string name="discard_changes_prompt">Sind Sie sicher, dass Sie die Änderungen verwerfen wollen?</string>
<string name="row_number">Zeile %1$s</string>
<string name="tripltek_promo">Tripltek-Promo für %1$s Monate</string>
<string name="tripltek_promo_description">Kostenloser Zugriff für %1$s Monate auf Funktionen wie unbegrenzte Karten-Downloads, 3D-Reliefs usw.</string>
<string name="see_all_plans">Alle Pläne anzeigen</string>
</resources>
14 changes: 14 additions & 0 deletions OsmAnd/res/values-es-rAR/phrases.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4635,4 +4635,18 @@
<string name="poi_socket_typee_yes">Tipo E</string>
<string name="poi_dressing_room">Vestidor</string>
<string name="poi_emergency_bay">Bahía de emergencia</string>
<string name="poi_osmand_motor_vehicle_no">Acceso para vehículos motorizados: no</string>
<string name="poi_osmand_motorcar_no">Acceso para automóviles: no</string>
<string name="poi_osmand_vehicle_no">Acceso para vehículos: no</string>
<string name="poi_osmand_access_no">Acceso: no</string>
<string name="poi_osmand_access_private">Acceso: privado</string>
<string name="poi_osmand_foot_private">Acceso peatonal: privado</string>
<string name="poi_osmand_bicycle_private">Acceso para bicicletas: privado</string>
<string name="poi_osmand_motor_vehicle_private">Acceso para vehículos motorizados: privado</string>
<string name="poi_osmand_foot_no">Acceso peatonal: no</string>
<string name="poi_osmand_bicycle_no">Acceso para bicicletas: no</string>
<string name="poi_osmand_vehicle_private">Acceso para vehículos: privado</string>
<string name="poi_osmand_motorcar_private">Acceso para automóviles: privado</string>
<string name="poi_osmand_motorcycle_no">Acceso para motocicletas: no</string>
<string name="poi_osmand_motorcycle_private">Acceso para motocicletas: privado</string>
</resources>
21 changes: 14 additions & 7 deletions OsmAnd/res/values-es-rAR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2636,7 +2636,7 @@
<string name="waypoints_removed_from_map_markers">Puntos de referencia borrados de los marcadores del mapa</string>
<string name="use_two_digits_longitude">Usar longitud de dos dígitos</string>
<string name="shared_string_result">Resultado</string>
<string name="saved_articles">Artículos favoritos</string>
<string name="saved_articles">Artículos destacados</string>
<string name="shared_string_explore">Explorar</string>
<string name="wikivoyage_search_hint">Buscar por país, ciudad o provincia</string>
<string name="shared_string_read">Leer</string>
Expand Down Expand Up @@ -2696,7 +2696,7 @@
<string name="paid_app">Aplicación de pago</string>
<string name="paid_plugin">Complemento de pago</string>
<string name="osmand_team">Equipo de OsmAnd</string>
<string name="maps_you_need_descr">Basado en los artículos favoritos, se recomienda descargar los siguientes mapas:</string>
<string name="maps_you_need_descr">Basado en los artículos destacados, se recomienda descargar los siguientes mapas:</string>
<string name="maps_you_need">Mapas que necesitas</string>
<string name="shared_string_restart">Reiniciar aplicación</string>
<string name="purchase_cancelled_dialog_title">Has cancelado la suscripción de OsmAnd Live</string>
Expand All @@ -2715,7 +2715,7 @@
<string name="topo_render_descr">Para practicar caminatas, senderismo y ciclismo en la naturaleza. Legible al aire libre. Caminos y objetos naturales en contraste, diferentes tipos de recorridos, opciones avanzadas en curvas de nivel, detalles adicionales. Ajustar la integridad de la superficie distingue la calidad del camino. Sin modo nocturno.</string>
<string name="default_render_descr">Estilo de uso general. Ciudades densas mostradas limpiamente. Cuenta con recorridos, calidad de la superficie, restricciones de acceso, escudos, visualización de caminos según escala SAC/CAI y características de deportes acuáticos y topográficas como curvas de nivel.</string>
<string name="touring_view_render_descr">Estilo turístico con alto contraste y máximo detalle. Incluye todas las opciones del estilo predefinido de OsmAnd, mientras que muestra tantos detalles como sea posible, en caminos, senderos y otras formas de viaje. Clara distinción del «atlas turístico» entre tipos de caminos. Adecuado para uso diurno, nocturno y al aire libre.</string>
<string name="shared_string_bookmark">Favorito</string>
<string name="shared_string_bookmark">Destacado</string>
<string name="off_road_render_descr">Adecuado para usarlo durante la conducción todoterreno basado en el estilo «Topo» y como un mapa subyacente con imágenes satelitales verdes. Reducción del grosor en carreteras principales, aumento del grosor de las vías, senderos, bicicletas y otras rutas.</string>
<string name="access_intermediate_arrival_time">Hora de llegada intermedia</string>
<string name="map_widget_intermediate_time">Tiempo intermedio</string>
Expand Down Expand Up @@ -4778,7 +4778,7 @@
<string name="shared_string_shows">Mostrar</string>
<string name="shared_string_normal">Normal</string>
<string name="map_marker_interval_dialog_desc">Indica el intervalo de tiempo a medir con la velocidad media para calcular la hora de llegada estimada.</string>
<string name="shared_string_large">Largo</string>
<string name="shared_string_large">Grande</string>
<string name="how_to_use">Cómo usar:</string>
<string name="distance_by_tap_use_description">Pulsa en el mapa para ver la distancia entre la ubicación actual y el punto pulsado.
\nPulsa con 2 dedos en el mapa para ver la distancia entre los puntos pulsados.</string>
Expand Down Expand Up @@ -5001,7 +5001,7 @@
<string name="cloud_conflict">Conflicto</string>
<string name="upload_all">Enviar todos</string>
<string name="cloud_recent_changes">Cambios</string>
<string name="cloud_all_changes_uploaded">Se cargaron todo los cambios</string>
<string name="cloud_all_changes_uploaded">Todos los cambios cargados</string>
<string name="cloud_all_changes_downloaded">Todos los cambios descargados</string>
<string name="cloud_no_conflicts">Sin conflictos.</string>
<string name="download_cloud_version">Descargar versión en la nube</string>
Expand Down Expand Up @@ -5520,7 +5520,7 @@
<string name="delete_trash_item_confirmation_desc">«%1$s» será borrado permanentemente. ¿Estás seguro\?
\n
\nEsta acción no se puede deshacer.</string>
<string name="shared_string_empty_trash">Papelera vacía</string>
<string name="shared_string_empty_trash">Vaciar papelera</string>
<string name="shared_string_delete_immediately">Borrar de inmediato</string>
<string name="shared_string_is_deleted">«%1$s» se ha borrado.</string>
<string name="cloud_item_restored">«%1$s» se ha restaurado en Cloud.</string>
Expand All @@ -5540,7 +5540,7 @@
<string name="key_event_action_previous_app_profile">Perfil de aplicación anterior</string>
<string name="show_toast_about_key_pressed">Mostrar notificación sobre la tecla pulsada</string>
<string name="key_event_action_move_left">Mover a la izquierda</string>
<string name="press_button_to_link_with_action">Pulsa el botón en el dispositivo para vincularlo con la acción: %1$s</string>
<string name="press_button_to_link_with_action">Pulsa el botón en el dispositivo para asignarle la acción: %1$s</string>
<string name="deletion_error">Error de borrado</string>
<string name="key_event_action_move_right">Mover a la derecha</string>
<string name="shared_string_button">Botón</string>
Expand All @@ -5567,4 +5567,11 @@
<string name="key_event_category_actions">Acciones</string>
<string name="change_button">Cambiar botón</string>
<string name="download_to_device">Descargar al dispositivo</string>
<string name="remove_widget_first">Quitar antes el widget</string>
<string name="add_row">Añadir fila</string>
<string name="discard_changes_prompt">¿Descartar cambios?</string>
<string name="row_number">Fila %1$s</string>
<string name="tripltek_promo">Promoción Tripltek por %1$s meses</string>
<string name="tripltek_promo_description">Libre acceso a las características, incluyendo descargas ilimitadas de mapas, relieve 3D, etc. por %1$s mes</string>
<string name="see_all_plans">Ver todos los planes</string>
</resources>
Loading

0 comments on commit 105c41c

Please sign in to comment.