diff --git a/src/com/trcardmanager/adapter/RestaurantListViewAdapter.java b/src/com/trcardmanager/adapter/RestaurantListViewAdapter.java index fbdc434..41a6978 100644 --- a/src/com/trcardmanager/adapter/RestaurantListViewAdapter.java +++ b/src/com/trcardmanager/adapter/RestaurantListViewAdapter.java @@ -3,12 +3,8 @@ import java.util.List; import android.content.Context; -import android.content.Intent; -import android.content.pm.PackageManager; -import android.content.pm.ResolveInfo; import android.graphics.Color; import android.graphics.Typeface; -import android.net.Uri; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; @@ -33,14 +29,11 @@ */ public class RestaurantListViewAdapter extends ArrayAdapter { - private static final String WAZE_APP_URL = "waze://?q=Hawaii"; - private static final int MAPS_ICON_POSITION = 3; private LayoutInflater inflater; private Context context; private ListView.LayoutParams linearLayoutParams; private int numberOfPages; private int actualPage; - private boolean wazeInstalled; public RestaurantListViewAdapter(Context context, int textViewResourceId, RestaurantSearchDao resturantSearchDao) { @@ -56,7 +49,6 @@ public RestaurantListViewAdapter(Context context, int textViewResourceId, inflater = LayoutInflater.from(context); this.context = context; this.linearLayoutParams = getDefaultLinearLayoutParams(); - setWazeInstalled(); } @Override @@ -131,11 +123,4 @@ private ListView.LayoutParams getDefaultLinearLayoutParams(){ LinearLayout.LayoutParams.WRAP_CONTENT); } - - private void setWazeInstalled(){ - Intent intent = new Intent( Intent.ACTION_VIEW, Uri.parse( WAZE_APP_URL ) ); - List list = context.getPackageManager().queryIntentActivities(intent, - PackageManager.MATCH_DEFAULT_ONLY); - wazeInstalled = (list.size()>0); - } } diff --git a/src/com/trcardmanager/restaurant/RestaurantItemOverlay.java b/src/com/trcardmanager/restaurant/RestaurantItemOverlay.java index 6ee47bc..e604158 100644 --- a/src/com/trcardmanager/restaurant/RestaurantItemOverlay.java +++ b/src/com/trcardmanager/restaurant/RestaurantItemOverlay.java @@ -2,7 +2,6 @@ import java.util.ArrayList; -import android.content.Context; import android.graphics.drawable.Drawable; import com.google.android.maps.ItemizedOverlay;