Small refactoring and cleaning
This commit is contained in:
parent
be45cb0706
commit
a4ab825925
3 changed files with 1 additions and 7 deletions
|
@ -52,7 +52,6 @@ public class BinaryMapRouteReaderAdapter {
|
|||
public final static int TRAFFIC_SIGNALS = 6;
|
||||
public final static int RAILWAY_CROSSING = 7;
|
||||
private final static int LANES = 8;
|
||||
private static final int TUNNEL = 9;
|
||||
private final String t;
|
||||
private final String v;
|
||||
private int intValue;
|
||||
|
@ -202,8 +201,6 @@ public class BinaryMapRouteReaderAdapter {
|
|||
if (i > 0) {
|
||||
intValue = Integer.parseInt(v.substring(0, i));
|
||||
}
|
||||
} else if (t.equalsIgnoreCase("tunnel") && v != null) {
|
||||
type = TUNNEL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,6 @@ import net.osmand.plus.ApplicationMode;
|
|||
import net.osmand.plus.IconsCache;
|
||||
import net.osmand.plus.OsmAndFormatter;
|
||||
import net.osmand.plus.OsmandApplication;
|
||||
import net.osmand.plus.OsmandSettings;
|
||||
import net.osmand.plus.OsmandSettings.MetricsConstants;
|
||||
import net.osmand.plus.R;
|
||||
import net.osmand.plus.TargetPointsHelper.TargetPoint;
|
||||
|
|
|
@ -17,7 +17,6 @@ import android.hardware.GeomagneticField;
|
|||
import android.os.BatteryManager;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.text.format.DateFormat;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
|
@ -1294,8 +1293,7 @@ public class RouteInfoWidgetsFactory {
|
|||
visible = peds;
|
||||
} else if (alarm.getType() == AlarmInfoType.TUNNEL) {
|
||||
visible = tunnels;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
visible = trafficWarnings;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue