mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
refactor: use '--' for int decremention instead of '-= 1'
This commit is contained in:
parent
373b297f97
commit
b9c59d492f
@ -69,7 +69,7 @@ class VideosAdapter(
|
||||
it.url?.toID() == videoId
|
||||
}.takeIf { it > 0 } ?: return
|
||||
streamItems.removeAt(index)
|
||||
visibleCount -= 1
|
||||
visibleCount--
|
||||
notifyItemRemoved(index)
|
||||
notifyItemRangeChanged(index, itemCount)
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ class WatchHistoryAdapter(
|
||||
DatabaseHolder.Database.watchHistoryDao().delete(history)
|
||||
}
|
||||
watchHistory.removeAt(position)
|
||||
visibleCount -= 1
|
||||
visibleCount--
|
||||
notifyItemRemoved(position)
|
||||
notifyItemRangeChanged(position, itemCount)
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ class AutoplayCountdownView(
|
||||
R.string.playing_next,
|
||||
currentTimerState.toString()
|
||||
)
|
||||
currentTimerState -= 1
|
||||
currentTimerState--
|
||||
handler.postDelayed(1000, TIMER_RUNNABLE_TOKEN, this::updateCountdown)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user