Formatting

Signed-off-by: S. Kozyr <s.trump@gmail.com>
This commit is contained in:
Sergiy Kozyr 2023-04-04 18:09:38 +03:00
parent ace9ed2814
commit e6a4032f90
Signed by: strump
GPG key ID: C622E5563CAC205D
4 changed files with 5 additions and 12 deletions

View file

@ -210,8 +210,7 @@ final class RoutingBottomMenuController implements View.OnClickListener
void setStartButton(boolean show)
{
if (show)
{
if (show) {
mStart.setText(mContext.getText(R.string.p2p_start));
mStart.setOnClickListener(v -> {
if (mListener != null)
@ -305,8 +304,7 @@ final class RoutingBottomMenuController implements View.OnClickListener
SpannableStringBuilder builder = new SpannableStringBuilder();
if (showTime)
{
if (showTime) {
initTimeBuilderSequence(context, time, builder);
String dot = "\u00A0• ";
initDotBuilderSequence(context, dot, builder);

View file

@ -856,10 +856,8 @@ public class RoutingController implements Initializable<Void>
0 /* intermediateIndex */, MapObject.isOfType(MapObject.MY_POSITION, point),
point.getLat(), point.getLon());
if (point.sameAs(startPoint))
{
if (endPoint == null)
{
if (point.sameAs(startPoint)) {
if (endPoint == null) {
Logger.d(TAG, "setEndPoint: skip because end point is empty");
return false;
}

View file

@ -456,9 +456,7 @@ public class PlacePageController implements Initializable<Activity>,
boolean needToShowRoutingButtons = RoutingController.get().isPlanning() || showRoutingButton;
if (needToShowRoutingButtons)
{
buttons.add(PlacePageButtons.ButtonType.ROUTE_FROM);
}
// If we can show the add route button, put it in the place of the bookmark button
// And move the bookmark button at the end

View file

@ -265,8 +265,7 @@ private:
bool AssertPosition() const
{
bool const ret = (m_pos <= m_reader.Size());
if (ret == false)
ASSERT ( ret, (m_pos, m_reader.Size()) );
ASSERT ( ret, (m_pos, m_reader.Size()) );
return ret;
}