Rename isStreamExist -> doesStreamExist

This commit is contained in:
TobiGr 2021-10-11 23:20:52 +02:00
parent cea14c9d0d
commit 55c51ad49d
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}

View File

@ -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++