From 8d82261d801e58d257449a4828b6c27050faff74 Mon Sep 17 00:00:00 2001 From: Doug Keen Date: Wed, 3 Apr 2013 22:16:15 -0700 Subject: [PATCH] Fixed quick lookup --- .../bart/activities/QuickRouteDialogFragment.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/com/dougkeen/bart/activities/QuickRouteDialogFragment.java b/src/com/dougkeen/bart/activities/QuickRouteDialogFragment.java index fa78652..3e053f9 100644 --- a/src/com/dougkeen/bart/activities/QuickRouteDialogFragment.java +++ b/src/com/dougkeen/bart/activities/QuickRouteDialogFragment.java @@ -6,6 +6,7 @@ import com.dougkeen.bart.BartRunnerApplication; import com.dougkeen.bart.R; import com.dougkeen.bart.model.Constants; import com.dougkeen.bart.model.Station; +import com.dougkeen.bart.model.StationPair; public class QuickRouteDialogFragment extends AbstractRouteSelectionFragment { @@ -16,9 +17,9 @@ public class QuickRouteDialogFragment extends AbstractRouteSelectionFragment { @Override protected void onOkButtonClick(Station origin, Station destination) { - startActivity(new Intent(Intent.ACTION_VIEW, - Constants.ARBITRARY_ROUTE_CONTENT_URI_ROOT.buildUpon() - .appendPath(origin.abbreviation) - .appendPath(destination.abbreviation).build())); + Intent intent = new Intent(getActivity(), ViewDeparturesActivity.class); + intent.putExtra(Constants.STATION_PAIR_EXTRA, new StationPair(origin, + destination)); + startActivity(intent); } }