summaryrefslogtreecommitdiff
path: root/vdrmanager/src/de
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2011-10-08 00:12:26 +0200
committerlado <herrlado@gmail.com>2011-10-08 00:12:26 +0200
commitf3deabce766d858c284a8e4597fd1686989e44db (patch)
tree9d116142f7da0e344a3ff31dce6827ddd728a878 /vdrmanager/src/de
parent7ab4737ee456bcb37627ed4ef6dd32135c82fbf8 (diff)
downloadvdr-manager-f3deabce766d858c284a8e4597fd1686989e44db.tar.gz
vdr-manager-f3deabce766d858c284a8e4597fd1686989e44db.tar.bz2
provider name along channel name
Diffstat (limited to 'vdrmanager/src/de')
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/ChannelAdapter.java19
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/ChannelHolder.java1
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/EventAdapter.java3
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/GroupHolder.java7
4 files changed, 14 insertions, 16 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/ChannelAdapter.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/ChannelAdapter.java
index e413b31..c712cdd 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/ChannelAdapter.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/ChannelAdapter.java
@@ -84,6 +84,7 @@ class ChannelAdapter extends BaseExpandableListAdapter implements Filterable// ,
itemHolder.name = (TextView) view.findViewById(R.id.channel_name);
itemHolder.type = (ImageView) view.findViewById(R.id.channel_type);
+ itemHolder.aux = (TextView) view.findViewById(R.id.channel_aux);
view.setTag(itemHolder);
} else {
@@ -97,7 +98,13 @@ class ChannelAdapter extends BaseExpandableListAdapter implements Filterable// ,
name = item.getNumber() + " - " + name;
}
itemHolder.name.setText(name);
-
+
+ if(groupBy != ChannelListActivity.MENU_PROVIDER){
+ itemHolder.aux.setText(item.getProvider());
+ } else {
+ itemHolder.aux.setText("");
+ }
+
return view;
}
@@ -125,25 +132,25 @@ class ChannelAdapter extends BaseExpandableListAdapter implements Filterable// ,
View convertView, ViewGroup parent) {
String group = (String) getGroup(groupPosition);
- GroupHolder itemHolder = new GroupHolder();
+ ChannelHolder itemHolder = new ChannelHolder();
// recycle view?
View view = convertView;
if (view == null) {
view = inflater.inflate(R.layout.group_layout, null);
- itemHolder = new GroupHolder();
+ itemHolder = new ChannelHolder();
itemHolder.name = (TextView) view.findViewById(R.id.group_name);
- itemHolder.count = (TextView) view.findViewById(R.id.channel_count);
+ itemHolder.aux = (TextView) view.findViewById(R.id.channel_count);
// itemHolder.type = (ImageView)
// view.findViewById(R.id.channel_type);
view.setTag(itemHolder);
} else {
- itemHolder = (GroupHolder) view.getTag();
+ itemHolder = (ChannelHolder) view.getTag();
}
itemHolder.name.setText(group);
- itemHolder.count.setText(String.valueOf(this.channels.get(group).size()));
+ itemHolder.aux.setText(String.valueOf(this.channels.get(group).size()));
return view;
}
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/ChannelHolder.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/ChannelHolder.java
index ef09410..e103449 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/ChannelHolder.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/ChannelHolder.java
@@ -6,4 +6,5 @@ import android.widget.TextView;
class ChannelHolder {
public ImageView type;
public TextView name;
+ public TextView aux;
} \ No newline at end of file
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventAdapter.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventAdapter.java
index f4cb3f8..181195a 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventAdapter.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventAdapter.java
@@ -1,8 +1,5 @@
package de.bjusystems.vdrmanager.gui;
-import java.util.ArrayList;
-import java.util.List;
-
import android.content.Context;
import android.graphics.Color;
import android.text.TextUtils;
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/GroupHolder.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/GroupHolder.java
deleted file mode 100644
index 6647a3c..0000000
--- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/GroupHolder.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package de.bjusystems.vdrmanager.gui;
-
-import android.widget.TextView;
-
-class GroupHolder extends ChannelHolder {
- public TextView count;
-} \ No newline at end of file