Resolves issue with Tuner retaining released TunerChannels, preventing

the tuner from sourcing additional out-of-band channels.
This commit is contained in:
Denny Sheirer
2016-01-30 16:58:52 +00:00
parent 1290b8c4d3
commit 6f76f6fca4

View File

@@ -97,9 +97,13 @@ public class TunerChannel implements Comparable<TunerChannel>
}
@Override
public int compareTo( TunerChannel otherLock )
public int compareTo( TunerChannel otherTunerChannel )
{
if( mFrequency < otherLock.getFrequency() )
if( this.equals( otherTunerChannel ) )
{
return 0;
}
else if( mFrequency < otherTunerChannel.getFrequency() )
{
return -1;
}