Moved OnDirectionsSelected Listener into DirectionsListFragment

Change-Id: Ie54e5e394a707a1911eaa408883d4220697f21fb
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-03-15 10:10:07 -04:00
parent 15f40387eb
commit 55af1854c8
3 changed files with 15 additions and 25 deletions

Binary file not shown.

View File

@@ -13,7 +13,6 @@ import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.TwentyCodes.android.location.OnDirectionSelectedListener;
import com.TwentyCodes.android.overlays.DirectionsOverlay;
import com.google.android.maps.GeoPoint;
@@ -24,6 +23,21 @@ import com.google.android.maps.GeoPoint;
*/
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 ArrayList<GeoPoint> mPoints;

View File

@@ -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);
}