Fixed quick lookup
This commit is contained in:
parent
3cc96e579e
commit
8d82261d80
@ -6,6 +6,7 @@ import com.dougkeen.bart.BartRunnerApplication;
|
|||||||
import com.dougkeen.bart.R;
|
import com.dougkeen.bart.R;
|
||||||
import com.dougkeen.bart.model.Constants;
|
import com.dougkeen.bart.model.Constants;
|
||||||
import com.dougkeen.bart.model.Station;
|
import com.dougkeen.bart.model.Station;
|
||||||
|
import com.dougkeen.bart.model.StationPair;
|
||||||
|
|
||||||
public class QuickRouteDialogFragment extends AbstractRouteSelectionFragment {
|
public class QuickRouteDialogFragment extends AbstractRouteSelectionFragment {
|
||||||
|
|
||||||
@ -16,9 +17,9 @@ public class QuickRouteDialogFragment extends AbstractRouteSelectionFragment {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onOkButtonClick(Station origin, Station destination) {
|
protected void onOkButtonClick(Station origin, Station destination) {
|
||||||
startActivity(new Intent(Intent.ACTION_VIEW,
|
Intent intent = new Intent(getActivity(), ViewDeparturesActivity.class);
|
||||||
Constants.ARBITRARY_ROUTE_CONTENT_URI_ROOT.buildUpon()
|
intent.putExtra(Constants.STATION_PAIR_EXTRA, new StationPair(origin,
|
||||||
.appendPath(origin.abbreviation)
|
destination));
|
||||||
.appendPath(destination.abbreviation).build()));
|
startActivity(intent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user