diff --git a/OsmAnd/res/layout/fragment_on_save_current_track.xml b/OsmAnd/res/layout/fragment_on_save_current_track.xml
new file mode 100644
index 0000000000..ea38ee7d03
--- /dev/null
+++ b/OsmAnd/res/layout/fragment_on_save_current_track.xml
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OsmAnd/res/values-ar/strings.xml b/OsmAnd/res/values-ar/strings.xml
index 46c91c6685..6dd3653d42 100644
--- a/OsmAnd/res/values-ar/strings.xml
+++ b/OsmAnd/res/values-ar/strings.xml
@@ -2475,7 +2475,6 @@
تخطيط الطريق
فرز
تنسيق الإدخال
- تم حفظه
تصدير علاماتك إلى ملف يمكنك تحديده هنا:
حفظ كمسار
نقل إلى السجل
diff --git a/OsmAnd/res/values-az/strings.xml b/OsmAnd/res/values-az/strings.xml
index 68cf34ec45..5c5169df16 100644
--- a/OsmAnd/res/values-az/strings.xml
+++ b/OsmAnd/res/values-az/strings.xml
@@ -1713,7 +1713,6 @@
Sürətli koordinat daxiletmə
Mövqe istifadə et
Koordinat daxiletmə
- yadda saxlandı
İşarələrinizi aşağıdakı GPX faylına ixrac edin:
Tarixçəyə daşı
Proqramı növbəti dəfə başlatdığınızda qrup yox olacaq.
diff --git a/OsmAnd/res/values-b+be+Latn/strings.xml b/OsmAnd/res/values-b+be+Latn/strings.xml
index e64d710334..bb20586859 100644
--- a/OsmAnd/res/values-b+be+Latn/strings.xml
+++ b/OsmAnd/res/values-b+be+Latn/strings.xml
@@ -2533,7 +2533,6 @@ Praparcyjnaj pamiacі %4$s MB (Abmiežavańnie Android %5$s MB, Dalvik %6$s MB).
Planavać maršrut
Sartavać
Uvod kaardynat
- zachavany
Ekspartavać vašy paznaki ŭ nastupny GPX-fajl:
Zachavać jak GPX-fajl
Pieramiaścić u historyju
diff --git a/OsmAnd/res/values-b+hsb/strings.xml b/OsmAnd/res/values-b+hsb/strings.xml
index c01b2cefbe..d50d50c7b7 100644
--- a/OsmAnd/res/values-b+hsb/strings.xml
+++ b/OsmAnd/res/values-b+hsb/strings.xml
@@ -1091,7 +1091,6 @@
Stejišćo wužiwać
Moje stejišćo
Sortěrować
- bu składowane
OSM-změnu wotstronić
Chceš %1$d noticu wotstronić. Sy sej wěsty/a?
Wotstronić
diff --git a/OsmAnd/res/values-b+kab/strings.xml b/OsmAnd/res/values-b+kab/strings.xml
index c37cad0574..29239746c2 100644
--- a/OsmAnd/res/values-b+kab/strings.xml
+++ b/OsmAnd/res/values-b+kab/strings.xml
@@ -292,7 +292,6 @@
Abrid
Fakk
Smizzwer
- yettwasekles
amnusruy
igemmen
Asmizzwer s :
diff --git a/OsmAnd/res/values-be/strings.xml b/OsmAnd/res/values-be/strings.xml
index 790e0d695e..cfe8e1e774 100644
--- a/OsmAnd/res/values-be/strings.xml
+++ b/OsmAnd/res/values-be/strings.xml
@@ -2538,7 +2538,6 @@
Планаваць маршрут
Упарадкаваць
Увод каардынат
- захаваны
Экспартаваць вашыя адзнакі ў наступны GPX-файл:
Захаваць як GPX-файл
Перамясціць у гісторыю
diff --git a/OsmAnd/res/values-ca/strings.xml b/OsmAnd/res/values-ca/strings.xml
index 201e9d242a..ee02123361 100644
--- a/OsmAnd/res/values-ca/strings.xml
+++ b/OsmAnd/res/values-ca/strings.xml
@@ -2546,7 +2546,6 @@ Abasta l\'àrea: %1$s x %2$s
Finalitza
Ordena
Entrada de coordenades
- s\'ha desat
Exporteu els vostres marcadors al fitxer GPX següent:
Desa com un fitxer GPX
Mou a l\'historial
diff --git a/OsmAnd/res/values-cs/strings.xml b/OsmAnd/res/values-cs/strings.xml
index 498a06dbc3..d42d4db305 100644
--- a/OsmAnd/res/values-cs/strings.xml
+++ b/OsmAnd/res/values-cs/strings.xml
@@ -2393,7 +2393,6 @@ Zobrazená oblast: %1$s x %2$s
Naplánovat trasu
Seřadit
Zadání souřadnic
- je uložen
Vyexportovat vaše značky do tohoto GPX souboru:
Uložit jako soubor GPX
Přesunout do historie
diff --git a/OsmAnd/res/values-da/strings.xml b/OsmAnd/res/values-da/strings.xml
index 4385b27c73..63af346bf8 100644
--- a/OsmAnd/res/values-da/strings.xml
+++ b/OsmAnd/res/values-da/strings.xml
@@ -2544,7 +2544,6 @@ Repræsenterer område: %1$s x %2$s
Planlæg rute
Sorter
Koordinatindtastning
- er gemt
Eksporter markører til følgende GPX-fil:
Gem som GPX-fil
Flyt til historik
diff --git a/OsmAnd/res/values-de/strings.xml b/OsmAnd/res/values-de/strings.xml
index 774e640d30..486375414e 100644
--- a/OsmAnd/res/values-de/strings.xml
+++ b/OsmAnd/res/values-de/strings.xml
@@ -2543,7 +2543,6 @@ Abgedeckte Fläche: %1$s x %2$s
Route planen
Sortieren
Koordinateneingabe
- ist gespeichert
Markierungen in die hier festgelegte GPX-Datei exportieren:
Als GPX-Datei speichern
In den Verlauf verschieben
diff --git a/OsmAnd/res/values-el/strings.xml b/OsmAnd/res/values-el/strings.xml
index 22ebcbbdb2..7189272532 100644
--- a/OsmAnd/res/values-el/strings.xml
+++ b/OsmAnd/res/values-el/strings.xml
@@ -1712,7 +1712,6 @@
Σχεδιασμός διαδρομής
Ταξινόμηση
Η εισαγωγή συντεταγμένης
- αποθηκεύτηκε
Εξαγωγή των δεικτών σας στο παρακάτω αρχείο GPX:
Αποθήκευση ως αρχείο GPX
Μετακίνηση στο ιστορικό
diff --git a/OsmAnd/res/values-eo/strings.xml b/OsmAnd/res/values-eo/strings.xml
index cdfd248c62..07189e0cf1 100644
--- a/OsmAnd/res/values-eo/strings.xml
+++ b/OsmAnd/res/values-eo/strings.xml
@@ -2531,7 +2531,6 @@ Indikas lokon: %1$s x %2$s"
Plani kurson
Ordigi
Enigi koordinatojn
- estas konservita
Elporti map-markojn al dosiero la GPX-dosiero:
Konservi kiel GPX-dosieron
Movi al historio
diff --git a/OsmAnd/res/values-es-rAR/strings.xml b/OsmAnd/res/values-es-rAR/strings.xml
index 5fcd5496a5..8f44b3b8fd 100644
--- a/OsmAnd/res/values-es-rAR/strings.xml
+++ b/OsmAnd/res/values-es-rAR/strings.xml
@@ -2540,7 +2540,6 @@ Lon %2$s
Planificar ruta
Ordenar
Ingresar coordenadas
- está guardado
Exporta los marcadores al siguiente archivo GPX:
Guardar como archivo GPX
Mover al historial
diff --git a/OsmAnd/res/values-es-rUS/strings.xml b/OsmAnd/res/values-es-rUS/strings.xml
index 9a6000d8f7..8d083ea9ad 100644
--- a/OsmAnd/res/values-es-rUS/strings.xml
+++ b/OsmAnd/res/values-es-rUS/strings.xml
@@ -2541,7 +2541,6 @@ Lon %2$s
Planificar ruta
Ordenar
Ingresar coordenadas
- está guardado
Exporta los marcadores al siguiente archivo GPX:
Guardar como archivo GPX
Mover al historial
diff --git a/OsmAnd/res/values-es/strings.xml b/OsmAnd/res/values-es/strings.xml
index 852e827783..0dcf44c02b 100644
--- a/OsmAnd/res/values-es/strings.xml
+++ b/OsmAnd/res/values-es/strings.xml
@@ -2565,7 +2565,6 @@
Planificar ruta
Ordenar
Ingresar coordenadas
- está guardado
Exporta los marcadores al siguiente archivo GPX:
Guardar como archivo GPX
Mover al historial
diff --git a/OsmAnd/res/values-eu/strings.xml b/OsmAnd/res/values-eu/strings.xml
index 3a6c0d6bcc..65a3620340 100644
--- a/OsmAnd/res/values-eu/strings.xml
+++ b/OsmAnd/res/values-eu/strings.xml
@@ -2620,7 +2620,6 @@ Area honi dagokio: %1$s x %2$s
Planifikatu ibilbidea
Ordenatu
Koordenatuen sarrera
- gorde da
Esportatu zure markatzaileak honako GPX fitxategi honetara:
Gorde GPX fitxategi gisa
Eraman historialera
diff --git a/OsmAnd/res/values-fa/strings.xml b/OsmAnd/res/values-fa/strings.xml
index 5774496a5c..206e807cea 100644
--- a/OsmAnd/res/values-fa/strings.xml
+++ b/OsmAnd/res/values-fa/strings.xml
@@ -2264,7 +2264,6 @@
طراحی مسیر
مرتبسازی
واردکردن مختصات
- ذخیره شد
نشانههایتان را در این فایل GPX ذخیره کنید:
فرستادن به سابقه
گروه با راهاندازی مجدد برنامه حذف میشود.
diff --git a/OsmAnd/res/values-fi/strings.xml b/OsmAnd/res/values-fi/strings.xml
index e89155fc58..f55e578c53 100644
--- a/OsmAnd/res/values-fi/strings.xml
+++ b/OsmAnd/res/values-fi/strings.xml
@@ -1972,7 +1972,6 @@ Jos pidät OsmAndista ja OSMsta ja haluat tukea niitä, on tämä täydellinen t
Suunnittele reitti
Lajittele
Koordinaattien syöttö
- on talletettu
Vie markkerisi seuraavaan GPX-tiedostoon:
Tallenna GPX-tiedostona
Siirrä historiaan
diff --git a/OsmAnd/res/values-fr/strings.xml b/OsmAnd/res/values-fr/strings.xml
index f20762e9cf..894a02c768 100644
--- a/OsmAnd/res/values-fr/strings.xml
+++ b/OsmAnd/res/values-fr/strings.xml
@@ -2517,7 +2517,6 @@ représentant la zone : %1$s x %2$s
Itinéraire planifié
Trier
Saisie des coordonnées
- a été enregistré
Exporter vos marques dans le fichier GPX suivant :
Enregistrer comme fichier GPX
Déplacer vers l\'historique
diff --git a/OsmAnd/res/values-gl/strings.xml b/OsmAnd/res/values-gl/strings.xml
index 5664e4a9ac..5943aa120c 100644
--- a/OsmAnd/res/values-gl/strings.xml
+++ b/OsmAnd/res/values-gl/strings.xml
@@ -2299,7 +2299,6 @@ Lon %2$s
Planificar rota
Ordenar
Inserir coordenadas
- foi gardado
Exporte as súas marcaxes cara un ficheiro que pode fornecer eiquí:
Mover ao historial
O grupo será riscado após o reinicio.
diff --git a/OsmAnd/res/values-he/strings.xml b/OsmAnd/res/values-he/strings.xml
index 929ad0278f..cd6c4aed5b 100644
--- a/OsmAnd/res/values-he/strings.xml
+++ b/OsmAnd/res/values-he/strings.xml
@@ -2591,7 +2591,6 @@
ניתן ליצור או לערוך נקודות עניין ב־OSM, לפתוח או להגיב על הערות OSM ולתרום קובצי GPX שהוקלטו.
סמנים שסומנו כיוון שעברת אותם יופיעו במסך הזה.
סמן שעברת
- נשמר
הצגת אלו שעברת
הסתרת אלו שעברת
מאמרי ויקימסע מכל רחבי העולם
diff --git a/OsmAnd/res/values-hu/strings.xml b/OsmAnd/res/values-hu/strings.xml
index bd10ccb8f3..2e5224e14e 100644
--- a/OsmAnd/res/values-hu/strings.xml
+++ b/OsmAnd/res/values-hu/strings.xml
@@ -2381,7 +2381,6 @@ Kérlek adj meg egy teljes kódot
Útvonal tervezése
Sorba rendezés
Koordináta bevitele
- mentve
Jelölők exportálása az alábbi GPX fájlba:
Mentés GPX fájlként
Áthelyezés az előzményekbe
diff --git a/OsmAnd/res/values-hy/strings.xml b/OsmAnd/res/values-hy/strings.xml
index 9482e03239..64c63cbce3 100644
--- a/OsmAnd/res/values-hy/strings.xml
+++ b/OsmAnd/res/values-hy/strings.xml
@@ -155,7 +155,6 @@
Պլանավորել երթուղին
Տեսակավորել
Կոորդինատների մուտքագրում
- պահպանված է
Արտահանեք ձեր մարկերները հետևյալ GPX ֆայլի մեջ:
Պահպանել որպես GPX ֆայլ
Տեղափոխեք պատմություն
diff --git a/OsmAnd/res/values-id/strings.xml b/OsmAnd/res/values-id/strings.xml
index 2951929453..c1138dc8d6 100644
--- a/OsmAnd/res/values-id/strings.xml
+++ b/OsmAnd/res/values-id/strings.xml
@@ -149,7 +149,6 @@
Rencanakan rute
Urutkan
Input koordinat
- telah disimpan
Ekspor penanda anda ke file yang dapat Anda tentukan di sini:
Simpan sebagai berkas GPX
Pindahkan ke riwayat
diff --git a/OsmAnd/res/values-is/strings.xml b/OsmAnd/res/values-is/strings.xml
index 0fecd6565e..31e45d7ef2 100644
--- a/OsmAnd/res/values-is/strings.xml
+++ b/OsmAnd/res/values-is/strings.xml
@@ -2248,7 +2248,6 @@ Stendur fyrir svæði: %1$s x %2$s
Ljúka
Skipuleggja leið
Innsett hnit
- eru vistuð
Flyttu kortamerkin þín út í eftirfarandi GPX-skrá:
Vista sem GPX-skrá
Flytja í aðgerðaferil
diff --git a/OsmAnd/res/values-it/strings.xml b/OsmAnd/res/values-it/strings.xml
index 75222592ce..b19cff9fb8 100644
--- a/OsmAnd/res/values-it/strings.xml
+++ b/OsmAnd/res/values-it/strings.xml
@@ -2458,7 +2458,6 @@ Rappresenta l\'area: %1$s x %2$s
Pianifica percorso
Ordina
Inserimento coordinate
- è salvato
Esporta i tuoi marcatori nel seguente file GPX:
Salva come file GPX
Sposta nella cronologia
diff --git a/OsmAnd/res/values-ja/strings.xml b/OsmAnd/res/values-ja/strings.xml
index c19735de97..fe4e64f3cc 100644
--- a/OsmAnd/res/values-ja/strings.xml
+++ b/OsmAnd/res/values-ja/strings.xml
@@ -2508,7 +2508,6 @@ POIの更新は利用できません
ルートプランの設定
並べ替え
座標入力
- は、保存されました
マーカーは以下に指定したファイル名でエクスポートされます:
経路を保存
履歴に移動
diff --git a/OsmAnd/res/values-kn/strings.xml b/OsmAnd/res/values-kn/strings.xml
index d0ea2ce75f..a09ca6927b 100644
--- a/OsmAnd/res/values-kn/strings.xml
+++ b/OsmAnd/res/values-kn/strings.xml
@@ -256,7 +256,6 @@
ಹತ್ತಿರದ ನಗರಗಳು
ನಗರವನ್ನು ಆರಿಸು
ಅಂಚೆಸಂಖ್ಯೆಯನ್ನು ಆರಿಸು
- ಉಳಿಸಲಾಗಿದೆ
ಪಟ್ಟಿ
ಗುಂಪುಗಳು
ಕೊನೆಯದಾಗಿ ಬಳಸಿದ್ದು: %1$s
diff --git a/OsmAnd/res/values-ku/strings.xml b/OsmAnd/res/values-ku/strings.xml
index 34b4e6a899..7e95e3764b 100644
--- a/OsmAnd/res/values-ku/strings.xml
+++ b/OsmAnd/res/values-ku/strings.xml
@@ -124,7 +124,6 @@
Cihê destpêkê bike cihê amanc.
Tesnîf bike
- hat tomarkirin
Navê nû binivîse
Paşve
Dîtin
diff --git a/OsmAnd/res/values-lt/strings.xml b/OsmAnd/res/values-lt/strings.xml
index a4d45a8986..6037097941 100644
--- a/OsmAnd/res/values-lt/strings.xml
+++ b/OsmAnd/res/values-lt/strings.xml
@@ -2392,7 +2392,6 @@ Tai yra puikus būdas paremti OsmAnd ir OSM, jei jie jums patinka.
Keisti OSM pastabą
Sparčioji koordinatės įvestis
Vengti ledo kelių, brastų
- išsaugota
Perkelti į istoriją
Grupė bus pašalinta iš naujo paleidus aplikaciją.
Rodyti rodykles žemėlapyje
diff --git a/OsmAnd/res/values-lv/strings.xml b/OsmAnd/res/values-lv/strings.xml
index 846d5d328c..85ce00fbce 100644
--- a/OsmAnd/res/values-lv/strings.xml
+++ b/OsmAnd/res/values-lv/strings.xml
@@ -2487,7 +2487,6 @@ No Afganistānas līdz Zimbabvei, no Austrālijas līdz ASV, Argentīna, Brazīl
Plānot maršrutu
Kārtot
Koordināšu ievade
- Saglabāts
Eksportēt marķierus jūsu izvēlētajā failā:
Saglabāt kā treku
Pārvietot uz vēsturi
diff --git a/OsmAnd/res/values-nb/strings.xml b/OsmAnd/res/values-nb/strings.xml
index 78239c6ef5..783a47c3cf 100644
--- a/OsmAnd/res/values-nb/strings.xml
+++ b/OsmAnd/res/values-nb/strings.xml
@@ -2142,7 +2142,6 @@
Planlegg rute
Sorter
Koordinatinntasting
- blir lagret
Eksporter dine markører til følgende GPX-fil:
Lagre som GPX-fil
Alle kartmarkører flyttet til historikk
diff --git a/OsmAnd/res/values-nl/strings.xml b/OsmAnd/res/values-nl/strings.xml
index 3ee3861a16..dbf3210606 100644
--- a/OsmAnd/res/values-nl/strings.xml
+++ b/OsmAnd/res/values-nl/strings.xml
@@ -2427,7 +2427,6 @@ voor Gebied: %1$s x %2$s
Plan route
Sorteer
Invoer van coördinaten
- is opgeslagen
Exporteer uw Markeervlaggetjes naar het volgende bestand:
Opslaan als GPX-track
Verplaats naar geschiedenis
diff --git a/OsmAnd/res/values-oc/strings.xml b/OsmAnd/res/values-oc/strings.xml
index de5325d2b3..06e12f2660 100644
--- a/OsmAnd/res/values-oc/strings.xml
+++ b/OsmAnd/res/values-oc/strings.xml
@@ -376,7 +376,6 @@
Planificar l\'itinerari
Ordenar
Intrada dei coordonadas
- sauvagardat
Sauvagardar per fichier GPX
Moure a la cronologia
Mostrar lei linhas de direccion
diff --git a/OsmAnd/res/values-pl/strings.xml b/OsmAnd/res/values-pl/strings.xml
index d27a2c18b9..dc762da588 100644
--- a/OsmAnd/res/values-pl/strings.xml
+++ b/OsmAnd/res/values-pl/strings.xml
@@ -2465,7 +2465,6 @@ Reprezentuje obszar: %1$s x %2$s
Przenieś do historii
Grupa zostanie usunięta po ponownym uruchomieniu.
Użycie klawiatury systemowej
- jest zapisany
Błędny format
Droga
Wyświetl mapę
diff --git a/OsmAnd/res/values-pt-rBR/strings.xml b/OsmAnd/res/values-pt-rBR/strings.xml
index 9b6fe2b897..60c3e4684b 100644
--- a/OsmAnd/res/values-pt-rBR/strings.xml
+++ b/OsmAnd/res/values-pt-rBR/strings.xml
@@ -1987,7 +1987,6 @@ Pôr do Sol: %2$s
Planejar rota
Ordenar
Inserção de coordenada
- está salvo
Exporte seus marcadores para o seguinte arquivo GPX:
Salvar como arquivo GPX
Mover para o histórico
diff --git a/OsmAnd/res/values-pt/strings.xml b/OsmAnd/res/values-pt/strings.xml
index 0caeb159c2..1a21d31179 100644
--- a/OsmAnd/res/values-pt/strings.xml
+++ b/OsmAnd/res/values-pt/strings.xml
@@ -1834,7 +1834,6 @@
Planear percurso
Classificar
Introdução de coordenada
- está guardado
Exporte os seus marcadores para um ficheiro que pode especificar aqui:
Guardar como ficheiro GPX
Mover para histórico
diff --git a/OsmAnd/res/values-ro/strings.xml b/OsmAnd/res/values-ro/strings.xml
index b4f846ddfb..2890c1314d 100644
--- a/OsmAnd/res/values-ro/strings.xml
+++ b/OsmAnd/res/values-ro/strings.xml
@@ -1741,7 +1741,6 @@
Evită drumurile cu polei și traversarile râurilor.
Planul rutei
Introduceți coordonatele
- este salvat
Exportați marcajele dvs. în următorul fișier GPX:
Salvați ca fișier GPX
Grupul va dispărea data viitoare când porniți aplicația.
diff --git a/OsmAnd/res/values-ru/strings.xml b/OsmAnd/res/values-ru/strings.xml
index 2641076f15..4ccb58b3bd 100644
--- a/OsmAnd/res/values-ru/strings.xml
+++ b/OsmAnd/res/values-ru/strings.xml
@@ -2473,7 +2473,6 @@
Маршрут рассчитан
Путешествие
Добавить ваше местоположение как точку старта при планировании маршрута.
- сохранено
Показать пройденные
Скрыть пройденные
Удалить из маркеров карты
diff --git a/OsmAnd/res/values-sc/strings.xml b/OsmAnd/res/values-sc/strings.xml
index 959421bbba..16003d620d 100644
--- a/OsmAnd/res/values-sc/strings.xml
+++ b/OsmAnd/res/values-sc/strings.xml
@@ -2530,7 +2530,6 @@ Pro praghere iscrie su còdighe intreu
Pranìfica àndala
Òrdina
Insertada de sas coordinadas
- est istadu sarvadu
Esporta sos marcadores tuos in custu documentu GPX:
Sarva comente documentu GPX
Pone in sa cronologia
diff --git a/OsmAnd/res/values-sk/strings.xml b/OsmAnd/res/values-sk/strings.xml
index b949d0d0d1..aebd5d26af 100644
--- a/OsmAnd/res/values-sk/strings.xml
+++ b/OsmAnd/res/values-sk/strings.xml
@@ -2523,7 +2523,6 @@ Zodpovedá oblasti: %1$s x %2$s
Naplánovať trasu
Zotriediť
Zadanie súradníc
- je uložený
Exportovať vaše značky do nasledovného súboru GPX:
Uložiť ako súbor GPX
Presunúť do histórie
diff --git a/OsmAnd/res/values-sl/strings.xml b/OsmAnd/res/values-sl/strings.xml
index f87d77376f..4b6039b16f 100644
--- a/OsmAnd/res/values-sl/strings.xml
+++ b/OsmAnd/res/values-sl/strings.xml
@@ -2529,7 +2529,6 @@ Koda predstavlja območje: %1$s x %2$s
Načrtovanje poti
Razvrsti
Vpis koordinat
- je shranjeno
Shrani kot datoteko GPX
Premakni v zgodovino
Skupina bo odstranjena ob ponovnem zagonu programa.
diff --git a/OsmAnd/res/values-sr/strings.xml b/OsmAnd/res/values-sr/strings.xml
index 8c30d15b16..be576bc726 100644
--- a/OsmAnd/res/values-sr/strings.xml
+++ b/OsmAnd/res/values-sr/strings.xml
@@ -1449,7 +1449,6 @@
План путовања
Распореди
Унос координата
- је сачуван
Извезите ознаке у следећи GPX фајл:
Сачувај као GPX фајл
Премести у историју
diff --git a/OsmAnd/res/values-sv/strings.xml b/OsmAnd/res/values-sv/strings.xml
index 72cc88f77e..c21c9edd42 100644
--- a/OsmAnd/res/values-sv/strings.xml
+++ b/OsmAnd/res/values-sv/strings.xml
@@ -2196,7 +2196,6 @@ Vänligen tillhandahåll fullständig kod
Undvik isvägar och vadställen.
Min plats
Sortera
- har sparats
Spara som GPX-fil
Flytta till historiken
Visa pilar på kartan
diff --git a/OsmAnd/res/values-ta/strings.xml b/OsmAnd/res/values-ta/strings.xml
index 4f679df3db..01a5a7ffb9 100644
--- a/OsmAnd/res/values-ta/strings.xml
+++ b/OsmAnd/res/values-ta/strings.xml
@@ -94,7 +94,6 @@
பாதையை திட்டமிடு
வகைபடுத்து.
ஒருங்கிணைப்பு உள்ளீடு
- சேமிக்கபட்டது
பின்வரும் ஜிபிஎக்ஸ் கோப்புக்கு குறிப்பாங்களை ஏற்றுமதி செய்:
ஜிபிஎக்ஸ் கோப்பாக சேமி
வறலாற்றுக்கு நகர்த்து
diff --git a/OsmAnd/res/values-tr/strings.xml b/OsmAnd/res/values-tr/strings.xml
index b74981cf4e..d04887ef76 100644
--- a/OsmAnd/res/values-tr/strings.xml
+++ b/OsmAnd/res/values-tr/strings.xml
@@ -2063,7 +2063,6 @@
Konumum
Bitir
Sırala
- kaydedildi
azalan
artan
Tarih eklendi
diff --git a/OsmAnd/res/values-uk/strings.xml b/OsmAnd/res/values-uk/strings.xml
index 7580ca86f5..f64fe551f0 100644
--- a/OsmAnd/res/values-uk/strings.xml
+++ b/OsmAnd/res/values-uk/strings.xml
@@ -2537,7 +2537,6 @@
Планувати маршрут
Впорядкувати
Введення координат
- збережено
Експортувати Ваші маркери у наступний GPX-файл:
Зберегти як GPX-файл
Перемістити в історію
diff --git a/OsmAnd/res/values-zh-rCN/strings.xml b/OsmAnd/res/values-zh-rCN/strings.xml
index 65bc230f63..589f2365c1 100644
--- a/OsmAnd/res/values-zh-rCN/strings.xml
+++ b/OsmAnd/res/values-zh-rCN/strings.xml
@@ -2350,7 +2350,6 @@
使用位置
排序
坐标输入
- 已保存
保存为轨迹
今天
昨天
diff --git a/OsmAnd/res/values-zh-rTW/strings.xml b/OsmAnd/res/values-zh-rTW/strings.xml
index ad5340ba73..c56baa283d 100644
--- a/OsmAnd/res/values-zh-rTW/strings.xml
+++ b/OsmAnd/res/values-zh-rTW/strings.xml
@@ -2527,7 +2527,6 @@
計畫路線
分類
座標輸入
- 已儲存
將您的標記匯出到下方的 GPX 檔案:
另存為 GPX 檔案
移至歷程
diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml
index 140d5addae..5a5687888a 100644
--- a/OsmAnd/res/values/strings.xml
+++ b/OsmAnd/res/values/strings.xml
@@ -11,6 +11,9 @@
Thx - Hardy
-->
+ %s is saved
+ Open track
+ Track %s is saved
Wake on turn
Set the time for which the screen will turn on.
Use proximity sensor
@@ -560,7 +563,6 @@
Plan route
Sort
Coordinate input
- is saved
Export your markers to the following GPX file:
Save as GPX file
Move to history
diff --git a/OsmAnd/src/net/osmand/AndroidUtils.java b/OsmAnd/src/net/osmand/AndroidUtils.java
index 63f3789102..2c3c5f7c34 100644
--- a/OsmAnd/src/net/osmand/AndroidUtils.java
+++ b/OsmAnd/src/net/osmand/AndroidUtils.java
@@ -13,6 +13,7 @@ import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PointF;
+import android.graphics.Typeface;
import android.graphics.drawable.ClipDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.LayerDrawable;
@@ -31,10 +32,13 @@ import android.support.v4.content.ContextCompat;
import android.support.v4.content.FileProvider;
import android.text.Spannable;
import android.text.SpannableString;
+import android.text.SpannableStringBuilder;
+import android.text.Spanned;
import android.text.TextPaint;
import android.text.TextUtils;
import android.text.format.DateFormat;
import android.text.style.ImageSpan;
+import android.text.style.StyleSpan;
import android.text.style.URLSpan;
import android.util.DisplayMetrics;
import android.util.TypedValue;
@@ -64,10 +68,13 @@ import static android.util.TypedValue.COMPLEX_UNIT_SP;
public class AndroidUtils {
+ public static final String STRING_PLACEHOLDER = "%s";
+
/**
* @param context
* @return true if Hardware keyboard is available
*/
+
public static boolean isHardwareKeyboardAvailable(Context context) {
return context.getResources().getConfiguration().keyboard != Configuration.KEYBOARD_NOKEYS;
}
@@ -551,4 +558,22 @@ public class AndroidUtils {
KeyguardManager keyguardManager = (KeyguardManager) context.getSystemService(Context.KEYGUARD_SERVICE);
return keyguardManager.inKeyguardRestrictedInputMode();
}
+
+ public static CharSequence getStyledString(CharSequence baseString, CharSequence stringToInsertAndStyle, int typefaceStyle) {
+
+ if (typefaceStyle == Typeface.NORMAL || typefaceStyle == Typeface.BOLD
+ || typefaceStyle == Typeface.ITALIC || typefaceStyle == Typeface.BOLD_ITALIC
+ || baseString.toString().contains(STRING_PLACEHOLDER)) {
+
+ int indexOfPlaceholder = baseString.toString().indexOf(STRING_PLACEHOLDER);
+
+ SpannableStringBuilder ssb = new SpannableStringBuilder(
+ baseString.toString().replace(STRING_PLACEHOLDER, stringToInsertAndStyle));
+ ssb.setSpan(new StyleSpan(typefaceStyle), indexOfPlaceholder,
+ stringToInsertAndStyle.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
+ return ssb;
+ } else {
+ return baseString;
+ }
+ }
}
diff --git a/OsmAnd/src/net/osmand/plus/AppInitializer.java b/OsmAnd/src/net/osmand/plus/AppInitializer.java
index c8d4a562e5..11340e18a3 100644
--- a/OsmAnd/src/net/osmand/plus/AppInitializer.java
+++ b/OsmAnd/src/net/osmand/plus/AppInitializer.java
@@ -743,7 +743,7 @@ public class AppInitializer implements IProgress {
if (System.currentTimeMillis() - timeUpdated >= 1000 * 60 * 30) {
startTask(app.getString(R.string.saving_gpx_tracks), -1);
try {
- warnings.addAll(app.savingTrackHelper.saveDataToGpx(app.getAppCustomization().getTracksDir()));
+ warnings.addAll(app.savingTrackHelper.saveDataToGpx(app.getAppCustomization().getTracksDir()).getWarnings());
} catch (RuntimeException e) {
warnings.add(e.getMessage());
}
diff --git a/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java b/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java
index 5d29aa5b1f..bda45dd53a 100644
--- a/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java
+++ b/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java
@@ -188,10 +188,11 @@ public class SavingTrackHelper extends SQLiteOpenHelper {
}
/**
- * @return warnings
+ * @return warnings, filenames
*/
- public synchronized List saveDataToGpx(File dir ) {
- List warnings = new ArrayList();
+ public synchronized SaveGpxResult saveDataToGpx(File dir) {
+ List warnings = new ArrayList<>();
+ List filenames = new ArrayList<>();
dir.mkdirs();
if (dir.getParentFile().canWrite()) {
if (dir.exists()) {
@@ -199,6 +200,7 @@ public class SavingTrackHelper extends SQLiteOpenHelper {
// save file
for (final String f : data.keySet()) {
+ log.debug("Filename: " + f);
File fout = new File(dir, f + ".gpx"); //$NON-NLS-1$
if (!data.get(f).isEmpty()) {
WptPt pt = data.get(f).findPointToShow();
@@ -214,6 +216,7 @@ public class SavingTrackHelper extends SQLiteOpenHelper {
}
String fileName = f + "_" + new SimpleDateFormat("HH-mm_EEE", Locale.US).format(new Date(pt.time)); //$NON-NLS-1$
+ filenames.add(fileName);
fout = new File(targetDir, fileName + ".gpx"); //$NON-NLS-1$
int ind = 1;
while (fout.exists()) {
@@ -224,7 +227,7 @@ public class SavingTrackHelper extends SQLiteOpenHelper {
Exception warn = GPXUtilities.writeGpxFile(fout, data.get(f));
if (warn != null) {
warnings.add(warn.getMessage());
- return warnings;
+ return new SaveGpxResult(warnings, new ArrayList());
}
GPXFile gpx = data.get(f);
@@ -257,7 +260,7 @@ public class SavingTrackHelper extends SQLiteOpenHelper {
currentTrack.getModifiablePointsToDisplay().clear();
currentTrack.getModifiableGpxFile().modifiedTime = System.currentTimeMillis();
prepareCurrentTrackForRecording();
- return warnings;
+ return new SaveGpxResult(warnings, filenames);
}
public Map collectRecordedData() {
@@ -685,5 +688,24 @@ public class SavingTrackHelper extends SQLiteOpenHelper {
public SelectedGpxFile getCurrentTrack() {
return currentTrack;
}
+
+ public class SaveGpxResult {
+
+ public SaveGpxResult(List warnings, List filenames) {
+ this.warnings = warnings;
+ this.filenames = filenames;
+ }
+
+ List warnings;
+ List filenames;
+
+ public List getWarnings() {
+ return warnings;
+ }
+
+ public List getFilenames() {
+ return filenames;
+ }
+ }
}
diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java
index c4b89a0d96..64722adb18 100644
--- a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java
+++ b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java
@@ -1076,7 +1076,7 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
if (listener != null) {
listener.onPointsSaved();
}
- snackbar = Snackbar.make(mainView, fileName + " " + getString(R.string.is_saved) + ".", Snackbar.LENGTH_LONG)
+ snackbar = Snackbar.make(mainView, String.format(getString(R.string.shared_string_file_is_saved), fileName) + ".", Snackbar.LENGTH_LONG)
.setAction(R.string.shared_string_show, new View.OnClickListener() {
@Override
public void onClick(View view) {
diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersDialogFragment.java
index 2a908da4d8..02d8029de9 100644
--- a/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersDialogFragment.java
+++ b/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersDialogFragment.java
@@ -479,7 +479,7 @@ public class MapMarkersDialogFragment extends android.support.v4.app.DialogFragm
@Override
public void saveGpx(final String fileName) {
final String gpxPath = mapActivity.getMyApplication().getMapMarkersHelper().generateGpx(fileName);
- snackbar = Snackbar.make(viewPager, fileName + " " + getString(R.string.is_saved) + ".", Snackbar.LENGTH_LONG)
+ snackbar = Snackbar.make(viewPager, String.format(getString(R.string.shared_string_file_is_saved), fileName) + ".", Snackbar.LENGTH_LONG)
.setAction(R.string.shared_string_show, new View.OnClickListener() {
@Override
public void onClick(View view) {
diff --git a/OsmAnd/src/net/osmand/plus/monitoring/OnSaveCurrentTrackFragment.java b/OsmAnd/src/net/osmand/plus/monitoring/OnSaveCurrentTrackFragment.java
new file mode 100644
index 0000000000..9cd177191c
--- /dev/null
+++ b/OsmAnd/src/net/osmand/plus/monitoring/OnSaveCurrentTrackFragment.java
@@ -0,0 +1,90 @@
+package net.osmand.plus.monitoring;
+
+import android.graphics.Typeface;
+import android.os.Bundle;
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
+import android.support.v4.app.FragmentManager;
+import android.view.ContextThemeWrapper;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.View.OnClickListener;
+import android.view.ViewGroup;
+import android.widget.Button;
+import android.widget.TextView;
+import java.io.File;
+import net.osmand.AndroidUtils;
+import net.osmand.GPXUtilities;
+import net.osmand.GPXUtilities.WptPt;
+import net.osmand.plus.OsmandApplication;
+import net.osmand.plus.OsmandSettings;
+import net.osmand.plus.R;
+import net.osmand.plus.base.BottomSheetDialogFragment;
+import net.osmand.plus.myplaces.AvailableGPXFragment;
+import net.osmand.plus.myplaces.AvailableGPXFragment.GpxInfo;
+
+public class OnSaveCurrentTrackFragment extends BottomSheetDialogFragment {
+
+ public static final String TAG = "OnSaveCurrentTrackBottomSheetFragment";
+ public static final String SAVED_TRACK_KEY = "saved_track_filename";
+
+
+
+ @Nullable
+ @Override
+ public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
+ final OsmandApplication app = getMyApplication();
+ Bundle args = getArguments();
+ String savedGpxName = "";
+ if (args != null && args.containsKey(SAVED_TRACK_KEY)) {
+ savedGpxName = args.getString(SAVED_TRACK_KEY, "");
+ } else {
+ dismiss();
+ }
+
+ final File f = new File (app.getAppCustomization().getTracksDir() +"/"+ savedGpxName + ".gpx");
+ final boolean nightMode = !app.getSettings().isLightContent();
+ final int themeRes = nightMode ? R.style.OsmandDarkTheme : R.style.OsmandLightTheme;
+ View mainView = View
+ .inflate(new ContextThemeWrapper(getContext(), themeRes), R.layout.fragment_on_save_current_track, container);
+ TextView tv = mainView.findViewById(R.id.saved_track_name_string);
+ Button openTrackBtn = mainView.findViewById(R.id.open_track_button);
+ Button showOnMapBtn = mainView.findViewById(R.id.show_on_map_button);
+
+ tv.setText(AndroidUtils.getStyledString(app.getString(R.string.shared_string_track_is_saved), savedGpxName, Typeface.BOLD));
+
+ openTrackBtn.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ AvailableGPXFragment.openTrack(getActivity(), f);
+ dismiss();
+ }
+ });
+
+ showOnMapBtn.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ GpxInfo gpxInfo = new GpxInfo();
+ gpxInfo.setGpx(GPXUtilities.loadGPXFile(f));
+ if (gpxInfo.gpx != null) {
+ OsmandSettings settings = app.getSettings();
+ WptPt loc = gpxInfo.gpx.findPointToShow();
+ if (loc != null) {
+ settings.setMapLocationToShow(loc.lat, loc.lon, settings.getLastKnownMapZoom());
+ app.getSelectedGpxHelper().setGpxFileToDisplay(gpxInfo.gpx);
+ }
+ }
+ dismiss();
+ }
+ });
+ return mainView;
+ }
+
+ public static void showInstance(FragmentManager fragmentManager, String filename) {
+ OnSaveCurrentTrackFragment f = new OnSaveCurrentTrackFragment();
+ Bundle b = new Bundle();
+ b.putString(SAVED_TRACK_KEY, filename);
+ f.setArguments(b);
+ f.show(fragmentManager, TAG);
+ }
+}
diff --git a/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java b/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java
index eb60ba548f..73bf7137e1 100644
--- a/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java
+++ b/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java
@@ -18,6 +18,7 @@ import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener;
import android.widget.TextView;
+import java.lang.ref.WeakReference;
import net.osmand.AndroidUtils;
import net.osmand.Location;
import net.osmand.ValueHolder;
@@ -31,6 +32,7 @@ import net.osmand.plus.OsmandSettings;
import net.osmand.plus.R;
import net.osmand.plus.activities.MapActivity;
import net.osmand.plus.activities.SavingTrackHelper;
+import net.osmand.plus.activities.SavingTrackHelper.SaveGpxResult;
import net.osmand.plus.dashboard.tools.DashFragmentData;
import net.osmand.plus.views.MapInfoLayer;
import net.osmand.plus.views.OsmandMapLayer.DrawSettings;
@@ -40,6 +42,7 @@ import net.osmand.plus.views.mapwidgets.TextInfoWidget;
import java.util.List;
import gnu.trove.list.array.TIntArrayList;
+import net.osmand.util.Algorithms;
public class OsmandMonitoringPlugin extends OsmandPlugin {
public static final String ID = "osmand.monitoring";
@@ -288,7 +291,11 @@ public class OsmandMonitoringPlugin extends OsmandPlugin {
int which = holder[0];
int item = items.get(which);
if(item == R.string.save_current_track){
- saveCurrentTrack();
+ if (map instanceof MapActivity) {
+ saveCurrentTrack(new WeakReference<>((MapActivity) map));
+ } else {
+ saveCurrentTrack();
+ }
} else if(item == R.string.gpx_monitoring_start) {
if (app.getLocationProvider().checkGPSEnabled(map)) {
startGPXMonitoring(map, showTrackSelection);
@@ -330,11 +337,20 @@ public class OsmandMonitoringPlugin extends OsmandPlugin {
}
public void saveCurrentTrack() {
- saveCurrentTrack(null);
+ saveCurrentTrack(null, null);
+ }
+
+ public void saveCurrentTrack(@Nullable final Runnable onComplete) {
+ saveCurrentTrack(onComplete, null);
}
- public void saveCurrentTrack(@Nullable final Runnable onComplete) {
- app.getTaskManager().runInBackground(new OsmAndTaskRunnable() {
+ public void saveCurrentTrack(@Nullable final WeakReference mapActivityRef) {
+ saveCurrentTrack(null, mapActivityRef);
+ }
+
+ public void saveCurrentTrack(@Nullable final Runnable onComplete,
+ @Nullable final WeakReference mapActivityRef) {
+ app.getTaskManager().runInBackground(new OsmAndTaskRunnable() {
@Override
protected void onPreExecute() {
@@ -343,11 +359,12 @@ public class OsmandMonitoringPlugin extends OsmandPlugin {
}
@Override
- protected Void doInBackground(Void... params) {
+ protected SaveGpxResult doInBackground(Void... params) {
try {
SavingTrackHelper helper = app.getSavingTrackHelper();
- helper.saveDataToGpx(app.getAppCustomization().getTracksDir());
+ SaveGpxResult result = helper.saveDataToGpx(app.getAppCustomization().getTracksDir());
helper.close();
+ return result;
} catch (Exception e) {
e.printStackTrace();
}
@@ -355,10 +372,17 @@ public class OsmandMonitoringPlugin extends OsmandPlugin {
}
@Override
- protected void onPostExecute(Void aVoid) {
+ protected void onPostExecute(SaveGpxResult result) {
isSaving = false;
app.getNotificationHelper().refreshNotifications();
updateControl();
+ if (mapActivityRef != null && !Algorithms.isEmpty(result.getFilenames())) {
+ final MapActivity a = mapActivityRef.get();
+ if (a != null && !a.isFinishing()) {
+ OnSaveCurrentTrackFragment.showInstance(a.getSupportFragmentManager(), result.getFilenames().get(0));
+ }
+ }
+
if (onComplete != null) {
onComplete.run();
}