From e4afabe96ae1515d64294827804719f039d27474 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 18 Jun 2013 23:46:06 +0200 Subject: [PATCH] Changed to use friendly device names. --- src/com/github/nutomic/controldlna/DeviceArrayAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/github/nutomic/controldlna/DeviceArrayAdapter.java b/src/com/github/nutomic/controldlna/DeviceArrayAdapter.java index 2450f97..94948fb 100644 --- a/src/com/github/nutomic/controldlna/DeviceArrayAdapter.java +++ b/src/com/github/nutomic/controldlna/DeviceArrayAdapter.java @@ -81,7 +81,8 @@ public class DeviceArrayAdapter extends ArrayAdapter> convertView = inflater.inflate(android.R.layout.simple_list_item_1, parent, false); } TextView tv = (TextView) convertView.findViewById(android.R.id.text1); - tv.setText(getItem(position).getDisplayString()); + tv.setText(getItem(position).getDetails().getFriendlyName()); + return convertView; }