diff options
author | lado <herrlado@gmail.com> | 2012-01-25 00:26:35 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2012-01-25 00:26:35 +0100 |
commit | b20a188b7e8eef4717603d7788df1941f5637a1c (patch) | |
tree | d78eceec96b1d16bd157d48c6889c83b7a5f138f /vdrmanager | |
parent | 3cedeae99e3dedd8355f71a2d2f27d724d4b64bb (diff) | |
download | vdr-manager-b20a188b7e8eef4717603d7788df1941f5637a1c.tar.gz vdr-manager-b20a188b7e8eef4717603d7788df1941f5637a1c.tar.bz2 |
better equals
Diffstat (limited to 'vdrmanager')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java b/vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java index e67e93b..02e9cc7 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java @@ -118,6 +118,10 @@ public class Channel implements Parcelable { if(o instanceof Channel == false){ return false; } + if(o == this){ + return true; + } + return number == ((Channel)o).getNumber(); }; |