diff options
author | lado <herrlado@gmail.com> | 2012-01-25 01:51:29 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2012-01-25 01:51:29 +0100 |
commit | 0deb7edb7cb99dead12407b71ddfd517c47ebe99 (patch) | |
tree | cbf4fb05ba54fc71f3846a9d171f7b0a56b1b557 /vdrmanager/src/de/bjusystems | |
parent | 87b70d47fd8408769b16830db0b3a3900162458d (diff) | |
download | vdr-manager-0deb7edb7cb99dead12407b71ddfd517c47ebe99.tar.gz vdr-manager-0deb7edb7cb99dead12407b71ddfd517c47ebe99.tar.bz2 |
sdk dependent
Diffstat (limited to 'vdrmanager/src/de/bjusystems')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/gui/ChannelListActivity.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/ChannelListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/ChannelListActivity.java index a9942b5..ee67b90 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/ChannelListActivity.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/ChannelListActivity.java @@ -11,6 +11,7 @@ import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; +import android.os.Build; import android.os.Bundle; import android.text.TextUtils; import android.view.ContextMenu; @@ -122,11 +123,18 @@ public class ChannelListActivity extends static class RecentChannelsAdapter extends ArrayAdapter<Channel>{ private Activity context; + int resId; public RecentChannelsAdapter(Activity context, List<Channel> list) { super(context, android.R.layout.simple_list_item_1, list); this.context = context; showChannelNumbers = Preferences.get().isShowChannelNumbers(); + + if (Build.VERSION.SDK_INT < 11) { + resId = android.R.layout.select_dialog_item; + } else { + resId = android.R.layout.simple_list_item_1; + } } public boolean showChannelNumbers; @@ -137,7 +145,7 @@ public class ChannelListActivity extends View view = convertView; if (view == null) { view = this.context.getLayoutInflater().inflate( - android.R.layout.simple_list_item_1, null); + resId, null); text1 = (TextView) view.findViewById(android.R.id.text1); view.setTag(text1); } else { |