commit
19063045e5
1 changed files with 6 additions and 0 deletions
|
@ -23,6 +23,7 @@ import android.view.ViewGroup;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import net.osmand.AndroidUtils;
|
||||||
import net.osmand.Location;
|
import net.osmand.Location;
|
||||||
import net.osmand.binary.RouteDataObject;
|
import net.osmand.binary.RouteDataObject;
|
||||||
import net.osmand.data.LatLon;
|
import net.osmand.data.LatLon;
|
||||||
|
@ -1309,6 +1310,11 @@ public class RouteInfoWidgetsFactory {
|
||||||
if (!Algorithms.objectEquals(text, this.textString)) {
|
if (!Algorithms.objectEquals(text, this.textString)) {
|
||||||
textString = text;
|
textString = text;
|
||||||
this.text.setText(this.textString);
|
this.text.setText(this.textString);
|
||||||
|
if (alarm.getType() == AlarmInfoType.SPEED_LIMIT && settings.DRIVING_REGION.get().americanSigns) {
|
||||||
|
this.text.setPadding(0, AndroidUtils.dpToPx(layout.getContext(), 20f), 0, 0);
|
||||||
|
} else {
|
||||||
|
this.text.setPadding(0, 0, 0, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!Algorithms.objectEquals(bottomText, this.bottomTextString)) {
|
if (!Algorithms.objectEquals(bottomText, this.bottomTextString)) {
|
||||||
bottomTextString = bottomText;
|
bottomTextString = bottomText;
|
||||||
|
|
Loading…
Reference in a new issue