diff options
Diffstat (limited to 'vdrmanager/src/de')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseEventListActivity.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseEventListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseEventListActivity.java index a433e64..463e03d 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseEventListActivity.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseEventListActivity.java @@ -314,6 +314,15 @@ public abstract class BaseEventListActivity<T extends Event> extends if (c != 0) { return c; } + if(item1.getChannelNumber() == null && item2.getChannelNumber() == null){ + return 0; + } + if(item1.getChannelNumber() == null){ + return -1; + } + if(item2.getChannelNumber() == null){ + return 1; + } return Integer.valueOf(item1.getChannelNumber()).compareTo( Integer.valueOf(item2.getChannelNumber())); } |