Rename isStreamExist -> doesStreamExist
This commit is contained in:
parent
cea14c9d0d
commit
55c51ad49d
|
@ -72,7 +72,7 @@ class FeedDatabaseManager(context: Context) {
|
|||
fun markAsOutdated(subscriptionId: Long) = feedTable
|
||||
.setLastUpdatedForSubscription(FeedLastUpdatedEntity(subscriptionId, null))
|
||||
|
||||
fun isStreamExist(stream: StreamInfoItem): Boolean {
|
||||
fun doesStreamExist(stream: StreamInfoItem): Boolean {
|
||||
return streamTable.exists(stream.serviceId, stream.url)
|
||||
}
|
||||
|
||||
|
|
|
@ -199,7 +199,7 @@ class FeedLoadManager(private val context: Context) {
|
|||
private fun countNewStreams(list: List<StreamInfoItem>): Int {
|
||||
var count = 0
|
||||
for (item in list) {
|
||||
if (feedDatabaseManager.isStreamExist(item)) {
|
||||
if (feedDatabaseManager.doesStreamExist(item)) {
|
||||
return count
|
||||
} else {
|
||||
count++
|
||||
|
|
Loading…
Reference in New Issue