Change clear data dialog

This commit is contained in:
Vitaliy 2020-02-27 13:44:59 +02:00
parent 90dc1a4ba8
commit ceb0a5ab88
2 changed files with 4 additions and 4 deletions

View file

@ -11,6 +11,7 @@
Thx - Hardy
-->
<string name="clear_recorded_data_warning">Are you sure you want to clear recorded data?</string>
<string name="profile_type_custom_string">Custom profile</string>
<string name="shared_string_angle_param">Angle: %s°</string>
<string name="shared_string_angle">Angle</string>

View file

@ -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);