@@ -56,9 +56,6 @@ public class HabitEventTimeLineActivity extends Fragment {
5656 private ListView listView ;
5757 private TextView textView ;
5858 private Button viewMap ;
59- //private double currentLat; //latitude of current loc
60- //private double currentLon; //Longitude of current loc
61-
6259
6360 ArrayList <HabitEvent > events = new ArrayList <>();
6461
@@ -91,16 +88,11 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
9188 Bundle bundle = getArguments ();
9289 if (bundle != null ) {
9390 this .userName = bundle .getString ("userName" );
94- //this.currentLat = bundle.getDouble("currentLat");
95- //this.currentLon = bundle.getDouble("currentLon");
9691
9792 Log .i ("HabitEventTimelineFragment: Username received: " , userName );
98- //Log.i("HabitEventTimelineFragment: Latitude received: ", ""+currentLat+"");
99- //Log.i("HabitEventTimelineFragment: Latitude received: ", ""+currentLon+"");
10093
10194 }
10295
103- //set up the TextView and ListView
10496 this .textView = (TextView ) view .findViewById (R .id .timelineHeadingTextView );
10597 this .listView = (ListView ) view .findViewById (R .id .timeLineListView );
10698 this .viewMap = (Button ) view .findViewById (R .id .viewMapButton );
@@ -311,7 +303,6 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id)
311303 Intent intent5 = new Intent (getActivity (),
312304 ViewHabitEventActivity .class );
313305 String a = events .size ()+" " + position ;
314- //HabitEvent myEvent = events.get(0);
315306
316307 Log .i ("HABitEventList" , a );
317308 if (!events .isEmpty ()) {
@@ -367,8 +358,6 @@ private void updateTextView(int eventCount){
367358 * @param events Arraylist of type HabitEvent
368359 */
369360 private void updateListView (ArrayList <HabitEvent > events ){
370- //ArrayAdapter<HabitEvent> arrayAdapter = new ArrayAdapter<>(getActivity(),
371- // R.layout.habit_event_list_item, events);
372361 EventListAdapter adapter = new EventListAdapter (getActivity (), events );
373362 synchronized (listView ){
374363 this .listView .setAdapter (adapter );
@@ -410,8 +399,6 @@ public void mapsAll(int type ){
410399 bundle .putDoubleArray ("lat" , latititudes );
411400 bundle .putDoubleArray ("lon" , longitudes );
412401 bundle .putInt ("type" , type );
413- //bundle.putDouble("currentLat", currentLat);
414- //bundle.putDouble("currentLon", currentLon);
415402
416403 intent .putExtras (bundle );
417404 startActivity (intent );
0 commit comments