From 596aa025cdaab0a4f48afb94fe1c2811fb098436 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Fri, 6 Sep 2013 11:32:32 +0100 Subject: [PATCH] InformationListAdapter: Use ArrayAdapter.getItem. --- android/src/com/reecedunn/espeak/InformationListAdapter.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/android/src/com/reecedunn/espeak/InformationListAdapter.java b/android/src/com/reecedunn/espeak/InformationListAdapter.java index ab5bca25..2508ab41 100644 --- a/android/src/com/reecedunn/espeak/InformationListAdapter.java +++ b/android/src/com/reecedunn/espeak/InformationListAdapter.java @@ -28,7 +28,6 @@ import android.widget.TextView; public class InformationListAdapter extends ArrayAdapter> { - private final List> information; private final LayoutInflater inflater; static class ViewHolder @@ -41,7 +40,6 @@ public class InformationListAdapter extends ArrayAdapter> { super(context, R.layout.information_view, information); this.inflater = context.getLayoutInflater(); - this.information = information; } @Override @@ -61,7 +59,7 @@ public class InformationListAdapter extends ArrayAdapter> holder = (ViewHolder)convertView.getTag(); } - Pair info = information.get(position); + Pair info = getItem(position); holder.title.setText(info.first); holder.summary.setText(info.second); return convertView;