Moved OnDirectionsSelected Listener into DirectionsListFragment
Change-Id: Ie54e5e394a707a1911eaa408883d4220697f21fb Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
Binary file not shown.
@@ -13,7 +13,6 @@ import android.view.View;
|
|||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
|
|
||||||
import com.TwentyCodes.android.location.OnDirectionSelectedListener;
|
|
||||||
import com.TwentyCodes.android.overlays.DirectionsOverlay;
|
import com.TwentyCodes.android.overlays.DirectionsOverlay;
|
||||||
import com.google.android.maps.GeoPoint;
|
import com.google.android.maps.GeoPoint;
|
||||||
|
|
||||||
@@ -24,6 +23,21 @@ import com.google.android.maps.GeoPoint;
|
|||||||
*/
|
*/
|
||||||
public class DirectionsListFragment extends ListFragment {
|
public class DirectionsListFragment extends ListFragment {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A simple interfrace for a directions list fragment
|
||||||
|
* @author ricky barrette
|
||||||
|
*/
|
||||||
|
public interface OnDirectionSelectedListener {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Called when the user selects a direction from a directions list
|
||||||
|
* @param point
|
||||||
|
* @author ricky barrette
|
||||||
|
*/
|
||||||
|
public void onDirectionSelected(GeoPoint point);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private OnDirectionSelectedListener mListener;
|
private OnDirectionSelectedListener mListener;
|
||||||
private ArrayList<GeoPoint> mPoints;
|
private ArrayList<GeoPoint> mPoints;
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
/**
|
|
||||||
* OnDirectionSelectedListener.java
|
|
||||||
* @date Mar 5, 2012
|
|
||||||
* @author ricky barrette
|
|
||||||
* @author Twenty Codes, LLC
|
|
||||||
*/
|
|
||||||
package com.TwentyCodes.android.location;
|
|
||||||
|
|
||||||
import com.google.android.maps.GeoPoint;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A simple interfrace for a directions list fragment
|
|
||||||
* @author ricky barrette
|
|
||||||
*/
|
|
||||||
public interface OnDirectionSelectedListener {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Called when the user selects a direction from a directions list
|
|
||||||
* @param point
|
|
||||||
* @author ricky barrette
|
|
||||||
*/
|
|
||||||
public void onDirectionSelected(GeoPoint point);
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user