From e58000f9a48fb759ca9165bf2955bc4088147f0f Mon Sep 17 00:00:00 2001 From: Chumva Date: Sun, 17 Feb 2019 23:57:34 +0200 Subject: [PATCH] Fix string resources and remove unnecessary changes --- OsmAnd-telegram/res/values-de/strings.xml | 1 - OsmAnd-telegram/res/values-es-rUS/strings.xml | 1 - OsmAnd-telegram/res/values-hu/strings.xml | 1 - OsmAnd-telegram/res/values-nb/strings.xml | 1 - OsmAnd-telegram/res/values/strings.xml | 8 +++++++- .../src/net/osmand/telegram/helpers/TelegramHelper.kt | 8 ++++++-- .../src/net/osmand/telegram/ui/TimelineTabFragment.kt | 5 +---- OsmAnd/res/values-ar/strings.xml | 10 +++++----- 8 files changed, 19 insertions(+), 16 deletions(-) diff --git a/OsmAnd-telegram/res/values-de/strings.xml b/OsmAnd-telegram/res/values-de/strings.xml index a07adaf0ba..4c43a3a3a0 100644 --- a/OsmAnd-telegram/res/values-de/strings.xml +++ b/OsmAnd-telegram/res/values-de/strings.xml @@ -185,7 +185,6 @@ In OsmAnd öffnen Endzeit Startzeit - Überwachung aktivieren, um Bewegungsdaten im Hintergrund zu erfassen. Zeitachse Bitte aktualisieren Sie OsmAnd, um die Daten auf der Karte zu sehen Aktualisieren diff --git a/OsmAnd-telegram/res/values-es-rUS/strings.xml b/OsmAnd-telegram/res/values-es-rUS/strings.xml index cb20bd76c8..3a2766bd4c 100644 --- a/OsmAnd-telegram/res/values-es-rUS/strings.xml +++ b/OsmAnd-telegram/res/values-es-rUS/strings.xml @@ -184,7 +184,6 @@ Abrir en OsmAnd Fecha de finalización Fecha de inicio - Activar la monitorización para recopilar datos de movimiento en segundo plano. Línea de tiempo enviado (%1$d en búfer) %1$d puntos diff --git a/OsmAnd-telegram/res/values-hu/strings.xml b/OsmAnd-telegram/res/values-hu/strings.xml index c7d0f0d1a0..a6d4ec0edc 100644 --- a/OsmAnd-telegram/res/values-hu/strings.xml +++ b/OsmAnd-telegram/res/values-hu/strings.xml @@ -28,7 +28,6 @@ Megnyitás az OsmAndban Záró dátum Kezdő dátum - Figyelemmel kísérés engedélyezése a mozgási adatok háttérben történő gyűjtéséért. Helyzet elküldése mint Válassza ki, hogyan nézzenek ki a helyzetét tartalmazó üzenetek. Térkép diff --git a/OsmAnd-telegram/res/values-nb/strings.xml b/OsmAnd-telegram/res/values-nb/strings.xml index 8037b77478..07873f5620 100644 --- a/OsmAnd-telegram/res/values-nb/strings.xml +++ b/OsmAnd-telegram/res/values-nb/strings.xml @@ -185,7 +185,6 @@ Åpne i OsmAnd Sluttdato Startdato - Skru på oppsyn for å samle bevegelsesdata i bakgrunnen. Tidslinje Telegram Telegram åpen plattform, og OsmAnd-sporeren er én av kundene. Dine kontakter kan bruke enhver annen Telegram-klient. diff --git a/OsmAnd-telegram/res/values/strings.xml b/OsmAnd-telegram/res/values/strings.xml index a705804046..8a86fe6f76 100644 --- a/OsmAnd-telegram/res/values/strings.xml +++ b/OsmAnd-telegram/res/values/strings.xml @@ -1,5 +1,12 @@ + OK + Timeline is a feature available now for free. + Disable monitoring + Location recording enabled + Enable monitoring to save all locations in history. + Online Tracker + OsmAnd Tracker Telegram Telegram (the messaging app) is used to to connect to and communicate with people. Telegram open platform and OsmAnd Tracker is one of the customers. Your contacts can use any other Telegram client. @@ -28,7 +35,6 @@ Open in OsmAnd End date Start date - Enable monitoring to collect movement data in the background. Send location as Choose how messages with your location will look like. Map diff --git a/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt b/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt index 2b59ee14b1..17bc313815 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt @@ -619,7 +619,9 @@ class TelegramHelper private constructor() { private fun processScannedLocationsForChat(chatId: Long, locations: MutableList) { if (locations.isNotEmpty()) { locations.sortBy { message -> OsmandLocationUtils.getLastUpdatedTime(message) } - updateLastMessage(locations.last()) + locations.forEach { + updateLastMessage(it) + } incomingMessagesListeners.forEach { it.onReceiveChatLocationMessages(chatId, *locations.toTypedArray()) } @@ -709,10 +711,10 @@ class TelegramHelper private constructor() { } if (oldMessage == null || (Math.max(message.editDate, message.date) > Math.max(oldMessage.editDate, oldMessage.date))) { message.content = OsmandLocationUtils.parseMessageContent(message, this) - usersLocationMessages[message.id] = message oldMessage?.let { usersLocationMessages.remove(it.id) } + usersLocationMessages[message.id] = message } } @@ -876,6 +878,7 @@ class TelegramHelper private constructor() { log.debug("handleMapLocationMessageUpdate - ERROR $obj") val error = obj as TdApi.Error needRefreshActiveLiveLocationMessages = true + shareInfo.pendingMapMessage = false if (error.code != IGNORED_ERROR_CODE) { shareInfo.hasSharingError = true outgoingMessagesListeners.forEach { @@ -921,6 +924,7 @@ class TelegramHelper private constructor() { TdApi.Error.CONSTRUCTOR -> { log.debug("handleTextLocationMessageUpdate - ERROR") val error = obj as TdApi.Error + shareInfo.pendingMapMessage = false if (error.code != IGNORED_ERROR_CODE) { shareInfo.hasSharingError = true outgoingMessagesListeners.forEach { diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/TimelineTabFragment.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/TimelineTabFragment.kt index 0add6bebed..f5c4c44273 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/TimelineTabFragment.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/TimelineTabFragment.kt @@ -115,14 +115,11 @@ class TimelineTabFragment : Fragment() { } fun tabOpened() { - updateEnable = true switcher.isChecked = settings.monitoringEnabled updateList() } - fun tabClosed() { - updateEnable = false - } + fun tabClosed() {} private fun selectDate() { val dateFromDialog = diff --git a/OsmAnd/res/values-ar/strings.xml b/OsmAnd/res/values-ar/strings.xml index 557b27883f..7113d2167d 100644 --- a/OsmAnd/res/values-ar/strings.xml +++ b/OsmAnd/res/values-ar/strings.xml @@ -2736,10 +2736,10 @@ إضافة وجهة أضف وجهة وسيطة إضافة نقطة البدء - النقطة المتوسط : %1$ s - نقاط الطريق: %1$ s - النقل:%1 $s - سيرا على الأقدام: %1$ s + النقطة المتوسط : %1$s + نقاط الطريق: %1$s + النقل:%1$s + سيرا على الأقدام: %1$s الطريقة: %1$s نقطة اهتمام (POI) في انتظار لحساب المسار @@ -2751,7 +2751,7 @@ إعلان صوتي الوجهات المتوسطة : %1$s الوصول إلى %1$s - سوف نقوم بإرسال استعلام البحث الخاص بك: \"%1$ s\"، وكذالك الموقع الخاص بك.
+ سوف نقوم بإرسال استعلام البحث الخاص بك: \"%1$s\"، وكذالك الموقع الخاص بك.

نحن لا نجمع معلومات شخصية، ونحن فقط بحاجة إلى البحث عن البيانات لتحسين خوارزمية البحث.
مناسبة للاستخدام أثناء القيادة على الطرق الوعرة. مناسب للاستخدام مع صور الأقمار الصناعية الخضراء كمخطط موضعها. النقاط الرئيسية: تخفيض سمك الطريق الرئيسية، وزيادة سمك المسارات والمسارات ودراجات وطرق أخرى. استناداً إلى نمط \'Topo\'.