summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2012-01-25 00:26:35 +0100
committerlado <herrlado@gmail.com>2012-01-25 00:26:35 +0100
commitb20a188b7e8eef4717603d7788df1941f5637a1c (patch)
treed78eceec96b1d16bd157d48c6889c83b7a5f138f
parent3cedeae99e3dedd8355f71a2d2f27d724d4b64bb (diff)
downloadvdr-manager-b20a188b7e8eef4717603d7788df1941f5637a1c.tar.gz
vdr-manager-b20a188b7e8eef4717603d7788df1941f5637a1c.tar.bz2
better equals
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java4
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();
};