Merge remote-tracking branch 'origin/master' into import_screen
This commit is contained in:
commit
e3c9cce6b1
23 changed files with 1 additions and 73 deletions
|
@ -3444,8 +3444,6 @@
|
|||
<string name="ltr_or_rtl_triple_combine_via_dash">%1$s — %2$s — %3$s</string>
|
||||
<string name="shared_string_custom_rendering_style">أسلوب تقديم مخصص</string>
|
||||
<string name="import_profile_dialog_description">يحتوي ملف التعريف المستوردة على بيانات إضافية. انقر فوق \"استيراد\" لاستيراد بيانات ملف التعريف فقط أو حدد بيانات إضافية لاستيرادها.</string>
|
||||
<string name="navigation_notification_desc">عرض إشعارات النظام أثناء التنقل بالتوجيهات .</string>
|
||||
<string name="navigation_notification">إشعار الملاحة</string>
|
||||
<string name="shared_string_app_default_w_val">التطبيق الافتراضي (%s)</string>
|
||||
<string name="no_recalculation_setting">تعطيل إعادة الحساب</string>
|
||||
<string name="route_recalculation_dist_title">الحد الأدنى من المسافة لإعادة حساب المسار</string>
|
||||
|
|
|
@ -3545,8 +3545,6 @@ Lon %2$s</string>
|
|||
<string name="multimedia_rec_split_title">Aufzeichnungsteilung</string>
|
||||
<string name="routing_profile_direct_to">Direkt zum Punkt</string>
|
||||
<string name="search_offline_geo_error">Geo-Intent \'%s\' konnte nicht analysiert werden.</string>
|
||||
<string name="navigation_notification_desc">Systembenachrichtigung während der Navigation mit Navigationsanweisungen anzeigen.</string>
|
||||
<string name="navigation_notification">Navigations-Benachrichtigung</string>
|
||||
<string name="shared_string_app_default_w_val">App-Standard (%s)</string>
|
||||
<string name="no_recalculation_setting">Neuberechnung deaktivieren</string>
|
||||
<string name="route_recalculation_dist_title">Minimale Entfernung zum Neuberechnen der Route</string>
|
||||
|
|
|
@ -3521,8 +3521,6 @@ Indikas lokon: %1$s x %2$s"</string>
|
|||
<string name="import_profile_dialog_description">La enportata profilo enhavas kromajn datumojn. Frapetu “enporti” por enporti nur profilajn datumojn aŭ elektu kromajn datumojn por enporti.</string>
|
||||
<string name="export_profile_dialog_description">Vi povas elekti kromajn datumojn por elporti kune kun la profilo.</string>
|
||||
<string name="index_name_antarctica">Antarkto</string>
|
||||
<string name="navigation_notification_desc">Montri sisteman sciigon dum navigi montrantan instrukciojn turno-post-turno.</string>
|
||||
<string name="navigation_notification">Sciigo dum navigado</string>
|
||||
<string name="shared_string_app_default_w_val">Implicita valoro (%s)</string>
|
||||
<string name="no_recalculation_setting">Malaktivigi rekalkulon</string>
|
||||
<string name="route_recalculation_dist_title">Minimuma distanco por rekalkuli kurson</string>
|
||||
|
|
|
@ -3540,8 +3540,6 @@ Lon %2$s</string>
|
|||
<string name="import_profile_dialog_description">El perfil importado contiene datos adicionales. Pulsa en «Importar» para importar sólo datos de perfil o marca datos adicionales para importar.</string>
|
||||
<string name="export_profile_dialog_description">Puedes marcar datos adicionales para exportar junto con el perfil.</string>
|
||||
<string name="index_name_antarctica">Antártida</string>
|
||||
<string name="navigation_notification_desc">Muestra la notificación del sistema durante la navegación con instrucciones de navegación.</string>
|
||||
<string name="navigation_notification">Notificación de navegación</string>
|
||||
<string name="shared_string_app_default_w_val">Aplicación predefinida (%s)</string>
|
||||
<string name="no_recalculation_setting">Desactivar el recálculo</string>
|
||||
<string name="route_recalculation_dist_title">Distancia mínima para recalcular la ruta</string>
|
||||
|
|
|
@ -3540,8 +3540,6 @@ Lon %2$s</string>
|
|||
<string name="import_profile_dialog_description">El perfil importado contiene datos adicionales. Pulsa en «Importar» para importar sólo datos de perfil o marca datos adicionales para importar.</string>
|
||||
<string name="export_profile_dialog_description">Puedes marcar datos adicionales para exportar junto con el perfil.</string>
|
||||
<string name="index_name_antarctica">Antártida</string>
|
||||
<string name="navigation_notification_desc">Muestra la notificación del sistema durante la navegación con instrucciones de navegación.</string>
|
||||
<string name="navigation_notification">Notificación de navegación</string>
|
||||
<string name="shared_string_app_default_w_val">Aplicación predefinida (%s)</string>
|
||||
<string name="no_recalculation_setting">Desactivar el recálculo</string>
|
||||
<string name="route_recalculation_dist_title">Distancia mínima para recalcular la ruta</string>
|
||||
|
|
|
@ -3567,8 +3567,6 @@
|
|||
<string name="export_profile_dialog_description">میتوانید دادهٔ بیشتری را انتخاب کنید تا همراه با پروفایل برونبرد کنید.</string>
|
||||
<string name="index_name_antarctica">جنوبگان</string>
|
||||
<string name="accessibility_announce">اعلام</string>
|
||||
<string name="navigation_notification_desc">هنگام ناوبری راهنمای ناوبری را در اعلانها نمایش میدهد.</string>
|
||||
<string name="navigation_notification">اعلان ناوبری</string>
|
||||
<string name="shared_string_app_default_w_val">پیشفرض برنامه</string>
|
||||
<string name="no_recalculation_setting">غیرفعالسازی محاسبهٔ مجدد</string>
|
||||
<string name="route_recalculation_dist_title">مسافت کمینی برای مسیریابی مجدد</string>
|
||||
|
|
|
@ -3510,8 +3510,6 @@ représentant la zone : %1$s x %2$s</string>
|
|||
<string name="import_profile_dialog_description">Le profil importé contient des données supplémentaires. Cliquez sur Importer pour n\'importer que les données de profil ou sélectionnez des données supplémentaires à importer.</string>
|
||||
<string name="export_profile_dialog_description">Vous pouvez sélectionner des données supplémentaires à exporter en même temps que le profil.</string>
|
||||
<string name="index_name_antarctica">Antarctique</string>
|
||||
<string name="navigation_notification_desc">Pendant la navigation, afficher une notification système avec les directions.</string>
|
||||
<string name="navigation_notification">Notification pendant la navigation</string>
|
||||
<string name="shared_string_app_default_w_val">Par défaut pour l\'application (%s)</string>
|
||||
<string name="no_recalculation_setting">Désactiver le re-calcul</string>
|
||||
<string name="route_recalculation_dist_title">Distance à partir de laquelle recalculer l’itinéraire</string>
|
||||
|
|
|
@ -3549,8 +3549,6 @@ Stendur fyrir svæði: %1$s x %2$s</string>
|
|||
\nViðbótin helst áfram uppsett á tækinu þó þú fjarlægir OsmAnd.</string>
|
||||
<string name="import_profile_dialog_description">Innflutta sniðið inniheldur viðbótargögn. Smelltu á að flytja inn til að sækja aðeins gögn sniðsins eða veldu þau viðbótargögn sem ætti að flytja inn.</string>
|
||||
<string name="export_profile_dialog_description">Hægt er að velja viðbótargögn til útflutnings með sniðinu.</string>
|
||||
<string name="navigation_notification_desc">Birta kerfistilkynningu með leiðbeiningum á meðan leiðsögn stendur.</string>
|
||||
<string name="navigation_notification">Tilkynning við leiðsögn</string>
|
||||
<string name="shared_string_app_default_w_val">Sjálfgefið fyrir forrit (%s)</string>
|
||||
<string name="no_recalculation_setting">Gera endurútreikning óvirkan</string>
|
||||
<string name="route_recalculation_dist_title">Lágmarksvegalengd til að leið sé endurreiknuð</string>
|
||||
|
|
|
@ -3518,8 +3518,6 @@ Reprezentuje obszar: %1$s x %2$s</string>
|
|||
<string name="import_profile_dialog_description">Zaimportowany profil zawiera dodatkowe dane. Kliknij przycisk Importuj, aby zaimportować tylko dane profilu lub wybierz dodatkowe dane do zaimportowania.</string>
|
||||
<string name="export_profile_dialog_description">Możesz wybrać dodatkowe dane do wyeksportowania wraz z profilem.</string>
|
||||
<string name="routing_profile_direct_to">Bezpośrednio do punktu</string>
|
||||
<string name="navigation_notification_desc">Pokaż powiadomienia systemowe podczas nawigacji z instrukcjami nawigacji.</string>
|
||||
<string name="navigation_notification">Powiadomienie nawigacyjne</string>
|
||||
<string name="shared_string_app_default_w_val">Aplikacja domyślna (%s)</string>
|
||||
<string name="no_recalculation_setting">Wyłącz ponowne obliczanie</string>
|
||||
<string name="route_recalculation_dist_title">Minimalna odległość do ponownego obliczenia trasy</string>
|
||||
|
|
|
@ -3527,8 +3527,6 @@ Pôr do Sol: %2$s</string>
|
|||
<string name="import_profile_dialog_description">O perfil importado contém dados adicionais. Clique em Importar para importar apenas dados do perfil ou selecione dados adicionais a serem importados.</string>
|
||||
<string name="export_profile_dialog_description">Você pode selecionar dados adicionais para exportar junto com o perfil.</string>
|
||||
<string name="index_name_antarctica">Antártida</string>
|
||||
<string name="navigation_notification_desc">Mostrar notificação do sistema durante a navegação com instruções de navegação.</string>
|
||||
<string name="navigation_notification">Notificação de navegação</string>
|
||||
<string name="shared_string_app_default_w_val">Aplicativo padrão (%s)</string>
|
||||
<string name="no_recalculation_setting">Desativar recálculo</string>
|
||||
<string name="route_recalculation_dist_title">Distância mínima para recalcular a rota</string>
|
||||
|
|
|
@ -3538,8 +3538,6 @@ Pro praghere iscrie su còdighe intreu</string>
|
|||
\n</string>
|
||||
<string name="sort_by_category">Òrdina pro categoria</string>
|
||||
<string name="index_name_antarctica">Antàrticu</string>
|
||||
<string name="navigation_notification_desc">Ammustra notìficas de sistema durante sa navigatzione cun istrutziones de navigatzione.</string>
|
||||
<string name="navigation_notification">Notìfica de navigatzione</string>
|
||||
<string name="shared_string_app_default_w_val">Predefinidu in s\'aplicatzione (%s)</string>
|
||||
<string name="no_recalculation_setting">Disabìlita su ri-càlculu de s\'àndala</string>
|
||||
<string name="route_recalculation_dist_title">Distàntzia mìnima pro torrare a calculare s\'àndala</string>
|
||||
|
|
|
@ -3495,8 +3495,6 @@
|
|||
<string name="import_profile_dialog_description">İçe aktarılan profil ilave veriler içermektedir. Yalnızca profil verilerini içe aktarmak için İçe Aktar\'ı tıklayın veya içe aktarılacak ilave verileri seçin.</string>
|
||||
<string name="export_profile_dialog_description">Profil ile birlikte dışa aktarılacak ilave veriler seçebilirsiniz.</string>
|
||||
<string name="index_name_antarctica">Antarktika</string>
|
||||
<string name="navigation_notification_desc">Navigasyon talimatları ile navigasyon sırasında sistem bildirimini göster.</string>
|
||||
<string name="navigation_notification">Navigasyon bildirimi</string>
|
||||
<string name="shared_string_app_default_w_val">Uygulama Varsayılanı (%s)</string>
|
||||
<string name="no_recalculation_setting">Yeniden hesaplamayı devre dışı bırak</string>
|
||||
<string name="route_recalculation_dist_title">Rotayı yeniden hesaplamak için minimum mesafe</string>
|
||||
|
|
|
@ -3530,8 +3530,6 @@
|
|||
<string name="import_profile_dialog_description">Імпортований профіль містить додаткові дані. Натисніть кнопку імпортувати, щоб імпортувати лише дані профілю або вибрати додаткові дані для імпорту.</string>
|
||||
<string name="export_profile_dialog_description">Ви можете вибрати додаткові дані для експорту разом із профілем.</string>
|
||||
<string name="index_name_antarctica">Антарктида</string>
|
||||
<string name="navigation_notification_desc">Показувати системне сповіщення з навігаційними вказівками під час навігації.</string>
|
||||
<string name="navigation_notification">Навігаційне сповіщення</string>
|
||||
<string name="shared_string_app_default_w_val">Усталений застосунок (%s)</string>
|
||||
<string name="no_recalculation_setting">Вимкнути перерахунок</string>
|
||||
<string name="route_recalculation_dist_title">Найменша відстань для перерахунку маршруту</string>
|
||||
|
|
|
@ -3530,8 +3530,6 @@
|
|||
<string name="import_profile_dialog_description">已匯入的設定檔包含了額外資料。點擊匯入僅匯入設定檔資料或選取額外的資料以匯入。</string>
|
||||
<string name="export_profile_dialog_description">您可以選取額外的資料以與設定檔一起匯出。</string>
|
||||
<string name="index_name_antarctica">南極洲</string>
|
||||
<string name="navigation_notification_desc">使用導航說明時喜訕系統通知。</string>
|
||||
<string name="navigation_notification">導航通知</string>
|
||||
<string name="shared_string_app_default_w_val">應用程式預設值 (%s)</string>
|
||||
<string name="no_recalculation_setting">停用重新計算</string>
|
||||
<string name="route_recalculation_dist_title">重新計算路線的最小距離</string>
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
<string name="shared_string_angle">Angle</string>
|
||||
<string name="recalc_angle_dialog_descr">Extra straight segment between my location and calculated route will be displayed until the route is recalculated</string>
|
||||
<string name="recalc_angle_dialog_title">Minimum angle between my location and route</string>
|
||||
<string name="navigation_notification_desc">Show system notification while navigation with navigation instructions.</string>
|
||||
<string name="navigation_notification">Navigation notification</string>
|
||||
<string name="shared_string_app_default_w_val">App Default (%s)</string>
|
||||
<string name="shared_string_preparing">Preparing</string>
|
||||
<string name="shared_string_poi_types">POI types</string>
|
||||
|
|
|
@ -72,12 +72,4 @@
|
|||
android:summaryOn="@string/shared_string_on"
|
||||
android:title="@string/animate_my_location" />
|
||||
|
||||
<net.osmand.plus.settings.preferences.SwitchPreferenceEx
|
||||
android:key="show_navigation_notification"
|
||||
android:layout="@layout/preference_with_descr_dialog_and_switch"
|
||||
android:summaryOff="@string/shared_string_disabled"
|
||||
android:summaryOn="@string/shared_string_enabled"
|
||||
android:title="@string/navigation_notification"
|
||||
tools:icon="@drawable/ic_action_notification" />
|
||||
|
||||
</PreferenceScreen>
|
|
@ -1974,8 +1974,6 @@ public class OsmandSettings {
|
|||
SHOW_ZOOM_BUTTONS_NAVIGATION.setModeDefaultValue(ApplicationMode.PEDESTRIAN, true);
|
||||
}
|
||||
|
||||
public final CommonPreference<Boolean> SHOW_NAVIGATION_NOTIFICATION = new BooleanPreference("show_navigation_notification", true).makeProfile();
|
||||
|
||||
// Json
|
||||
public final OsmandPreference<String> SELECTED_GPX = new StringPreference("selected_gpx", "").makeGlobal();
|
||||
|
||||
|
|
|
@ -53,11 +53,6 @@ public class DownloadNotification extends OsmandNotification {
|
|||
return new Intent(app, DownloadActivity.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUpdateDisabled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NotificationCompat.Builder buildNotification(boolean wearable) {
|
||||
icon = android.R.drawable.stat_sys_download;
|
||||
|
|
|
@ -48,11 +48,6 @@ public class ErrorNotification extends OsmandNotification {
|
|||
return new Intent(app, MapActivity.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUpdateDisabled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NotificationCompat.Builder buildNotification(boolean wearable) {
|
||||
String notificationTitle;
|
||||
|
|
|
@ -103,11 +103,6 @@ public class GpxNotification extends OsmandNotification {
|
|||
return new Intent(app, MapActivity.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUpdateDisabled() {
|
||||
return app.getSettings().MAP_ACTIVITY_ENABLED.get() && !app.getSettings().SHOW_TRIP_REC_NOTIFICATION.get();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNotificationDismissed() {
|
||||
if (!wasNoDataDismissed) {
|
||||
|
|
|
@ -114,11 +114,6 @@ public class NavigationNotification extends OsmandNotification {
|
|||
|| (routingHelper.isRoutePlanningMode() && routingHelper.isPauseNavigation());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUpdateDisabled() {
|
||||
return app.getSettings().MAP_ACTIVITY_ENABLED.get() && !app.getSettings().SHOW_NAVIGATION_NOTIFICATION.get();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Intent getContentIntent() {
|
||||
return new Intent(app, MapActivity.class);
|
||||
|
|
|
@ -104,8 +104,6 @@ public abstract class OsmandNotification {
|
|||
|
||||
public abstract boolean isEnabled();
|
||||
|
||||
public abstract boolean isUpdateDisabled();
|
||||
|
||||
public abstract Intent getContentIntent();
|
||||
|
||||
public void setupNotification(Notification notification) {
|
||||
|
@ -126,7 +124,7 @@ public abstract class OsmandNotification {
|
|||
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(app);
|
||||
if (isEnabled()) {
|
||||
Builder notificationBuilder = buildNotification(false);
|
||||
if (notificationBuilder != null && !isUpdateDisabled()) {
|
||||
if (notificationBuilder != null) {
|
||||
Notification notification = getNotification(notificationBuilder, false);
|
||||
setupNotification(notification);
|
||||
notificationManager.notify(top ? TOP_NOTIFICATION_SERVICE_ID : getOsmandNotificationId(), notification);
|
||||
|
@ -142,9 +140,6 @@ public abstract class OsmandNotification {
|
|||
if (isEnabled()) {
|
||||
Builder notificationBuilder = buildNotification(false);
|
||||
if (notificationBuilder != null) {
|
||||
if (isUpdateDisabled()) {
|
||||
return false;
|
||||
}
|
||||
Notification notification = getNotification(notificationBuilder, true);
|
||||
setupNotification(notification);
|
||||
if (top) {
|
||||
|
|
|
@ -64,7 +64,6 @@ public class NavigationFragment extends BaseSettingsFragment {
|
|||
|
||||
setupSpeakRoutingAlarmsPref();
|
||||
setupVehicleParametersPref();
|
||||
setupNavigationNotificationPref();
|
||||
|
||||
animateMyLocation.setDescription(getString(R.string.animate_my_location_desc));
|
||||
}
|
||||
|
@ -269,12 +268,6 @@ public class NavigationFragment extends BaseSettingsFragment {
|
|||
vehicleParameters.setIcon(getContentIcon(iconRes));
|
||||
}
|
||||
|
||||
private void setupNavigationNotificationPref() {
|
||||
SwitchPreferenceEx navigationNotification = (SwitchPreferenceEx) findPreference(settings.SHOW_NAVIGATION_NOTIFICATION.getId());
|
||||
navigationNotification.setDescription(getString(R.string.navigation_notification_desc));
|
||||
navigationNotification.setIcon(getPersistentPrefIcon(R.drawable.ic_action_notification));
|
||||
}
|
||||
|
||||
private void updateMenu() {
|
||||
MapActivity mapActivity = getMapActivity();
|
||||
if (mapActivity != null) {
|
||||
|
|
Loading…
Reference in a new issue