Remove unnecessary changes

This commit is contained in:
Chumva 2019-03-04 13:57:49 +02:00
parent 24a035dfb4
commit c87bd1f60a

View file

@ -1344,7 +1344,7 @@ public class ShowRouteInfoDialogFragment extends BaseOsmAndFragment {
container.addView(titleView); container.addView(titleView);
} }
private View buildDescriptionView(Spannable description, LinearLayout container, int paddingTop, int paddingBottom) { private void buildDescriptionView(Spannable description, LinearLayout container, int paddingTop, int paddingBottom) {
TextViewEx textViewDescription = new TextViewEx(view.getContext()); TextViewEx textViewDescription = new TextViewEx(view.getContext());
LinearLayout.LayoutParams descriptionParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); LinearLayout.LayoutParams descriptionParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
descriptionParams.setMargins(0, dpToPx(paddingTop), 0, dpToPx(paddingBottom)); descriptionParams.setMargins(0, dpToPx(paddingTop), 0, dpToPx(paddingBottom));
@ -1354,7 +1354,6 @@ public class ShowRouteInfoDialogFragment extends BaseOsmAndFragment {
AndroidUtils.setTextSecondaryColor(app, textViewDescription, nightMode); AndroidUtils.setTextSecondaryColor(app, textViewDescription, nightMode);
textViewDescription.setText(description); textViewDescription.setText(description);
container.addView(textViewDescription); container.addView(textViewDescription);
return textViewDescription;
} }
private LinearLayout buildTextContainerView() { private LinearLayout buildTextContainerView() {