BartRunnerAndroid/src/com/dougkeen/bart/activities/QuickRouteDialogFragment.java

22 lines
590 B
Java
Raw Normal View History

package com.dougkeen.bart.activities;
import android.content.Intent;
import com.dougkeen.bart.model.Constants;
import com.dougkeen.bart.model.Station;
public class QuickRouteDialogFragment extends AbstractRouteSelectionFragment {
public QuickRouteDialogFragment(String title) {
super(title);
}
@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()));
}
}