2012-07-16 15:06:31 +00:00
|
|
|
package com.dougkeen.bart;
|
|
|
|
|
|
|
|
import android.content.Intent;
|
|
|
|
|
|
|
|
import com.dougkeen.bart.model.Constants;
|
|
|
|
import com.dougkeen.bart.model.Station;
|
|
|
|
|
2012-09-05 17:34:00 +00:00
|
|
|
public class QuickRouteDialogFragment extends AbstractRouteSelectionFragment {
|
|
|
|
|
|
|
|
public QuickRouteDialogFragment(String title) {
|
|
|
|
super(title);
|
|
|
|
}
|
2012-07-16 15:06:31 +00:00
|
|
|
|
|
|
|
@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()));
|
|
|
|
}
|
|
|
|
}
|