26 lines
769 B
Java
26 lines
769 B
Java
package com.dougkeen.bart.activities;
|
|
|
|
import android.content.Intent;
|
|
|
|
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 {
|
|
|
|
public QuickRouteDialogFragment() {
|
|
super(BartRunnerApplication.getAppContext().getString(
|
|
R.string.quick_departure_lookup));
|
|
}
|
|
|
|
@Override
|
|
protected void onOkButtonClick(Station origin, Station destination) {
|
|
Intent intent = new Intent(getActivity(), ViewDeparturesActivity.class);
|
|
intent.putExtra(Constants.STATION_PAIR_EXTRA, new StationPair(origin,
|
|
destination));
|
|
startActivity(intent);
|
|
}
|
|
}
|