mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-07 06:08:51 +00:00
TripDetailsActivity: Log trip to be shown.
This commit is contained in:
parent
3131f79e6d
commit
320229b917
1 changed files with 7 additions and 0 deletions
|
@ -28,6 +28,9 @@ import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
|
|
||||||
import de.schildbach.oeffi.Constants;
|
import de.schildbach.oeffi.Constants;
|
||||||
|
@ -136,6 +139,8 @@ public class TripDetailsActivity extends OeffiActivity implements LocationListen
|
||||||
|
|
||||||
private static final int LEGSGROUP_INSERT_INDEX = 2;
|
private static final int LEGSGROUP_INSERT_INDEX = 2;
|
||||||
|
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(TripDetailsActivity.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(final Bundle savedInstanceState) {
|
protected void onCreate(final Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
@ -153,6 +158,8 @@ public class TripDetailsActivity extends OeffiActivity implements LocationListen
|
||||||
network = (NetworkId) intent.getSerializableExtra(INTENT_EXTRA_NETWORK);
|
network = (NetworkId) intent.getSerializableExtra(INTENT_EXTRA_NETWORK);
|
||||||
trip = (Trip) intent.getSerializableExtra(INTENT_EXTRA_TRIP);
|
trip = (Trip) intent.getSerializableExtra(INTENT_EXTRA_TRIP);
|
||||||
|
|
||||||
|
log.info("Showing trip from {} to {}", trip.from, trip.to);
|
||||||
|
|
||||||
// try to build up paths
|
// try to build up paths
|
||||||
for (final Leg leg : trip.legs) {
|
for (final Leg leg : trip.legs) {
|
||||||
if (leg.path == null) {
|
if (leg.path == null) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue