diff options
author | orionlee <orionlee@yahoo.com> | 2019-11-05 10:14:07 -0800 |
---|---|---|
committer | orionlee <orionlee@yahoo.com> | 2019-11-05 12:34:11 -0800 |
commit | 6e019f72de951acb21cec433a4da6cb64a103082 (patch) | |
tree | 3771b97ef64691708bcb5d7c319fa9764132b87b /core/src/main/java | |
parent | b80973bc303df5d51c4a677e2d65084eb3b938e8 (diff) | |
download | AntennaPod-6e019f72de951acb21cec433a4da6cb64a103082.zip |
code style / comment tweak per review
Diffstat (limited to 'core/src/main/java')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/storage/ItemEnqueuePositionCalculator.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/ItemEnqueuePositionCalculator.java b/core/src/main/java/de/danoeh/antennapod/core/storage/ItemEnqueuePositionCalculator.java index 700c15eb6..4b28d36b5 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/ItemEnqueuePositionCalculator.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/ItemEnqueuePositionCalculator.java @@ -40,8 +40,10 @@ class ItemEnqueuePositionCalculator { case BACK: return curQueue.size(); case FRONT: - // return NOT 0, so that when a list of items are inserted, the items inserted - // keep the same order. Returning 0 will reverse the order + // Return not necessarily 0, so that when a list of items are downloaded and enqueued + // in succession of calls (e.g., users manually tapping download one by one), + // the items enqueued are kept the same order. + // Simply returning 0 will reverse the order. return getPositionOfFirstNonDownloadingItem(0, curQueue); case AFTER_CURRENTLY_PLAYING: int currentlyPlayingPosition = getCurrentlyPlayingPosition(curQueue, currentPlaying); |