Change title in add line mode

This commit is contained in:
PavelRatushny 2017-08-11 15:51:53 +03:00
parent 468d1eb4e2
commit c32e6d4681

View file

@ -284,7 +284,11 @@ public class MeasurementToolFragment extends Fragment {
if (portrait) {
toolBarController = new MeasurementToolBarController();
toolBarController.setTitle(getString(R.string.measurement_tool_action_bar));
if (newGpxLine != null) {
toolBarController.setTitle(getString(R.string.add_line));
} else {
toolBarController.setTitle(getString(R.string.measurement_tool_action_bar));
}
toolBarController.setOnBackButtonClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {