From ceb0a5ab887ad33b86e84f3bf7af86bd7c946e67 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Thu, 27 Feb 2020 13:44:59 +0200 Subject: [PATCH] Change clear data dialog --- OsmAnd/res/values/strings.xml | 1 + .../net/osmand/plus/monitoring/OsmandMonitoringPlugin.java | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 6984349329..345cde9a3f 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -11,6 +11,7 @@ Thx - Hardy --> + Are you sure you want to clear recorded data? Custom profile Angle: %s° Angle diff --git a/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java b/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java index e6fab01a86..8ed174678e 100644 --- a/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java +++ b/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java @@ -329,10 +329,9 @@ public class OsmandMonitoringPlugin extends OsmandPlugin { } } else if (item == R.string.clear_recorded_data) { AlertDialog.Builder builder = new AlertDialog.Builder(UiUtilities.getThemedContext(activity, nightMode)); - builder.setTitle(R.string.clear_recorded_data); - builder.setMessage(R.string.are_you_sure); - builder.setNegativeButton(R.string.shared_string_cancel, null).setPositiveButton( - R.string.shared_string_ok, new DialogInterface.OnClickListener() { + builder.setTitle(R.string.clear_recorded_data_warning); + builder.setNegativeButton(R.string.shared_string_no, null).setPositiveButton( + R.string.shared_string_clear, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { app.getSavingTrackHelper().clearRecordedData(true);