From afa4ab463ccef089603287f24d1d68974fa2c5f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kilian=20K=C3=B6ppchen?= <373318+stubb@users.noreply.github.com> Date: Sun, 1 Mar 2020 16:54:38 +0100 Subject: [PATCH] Fix comments within CoverCache class. (#1019) --- .../java/ch/blinkenlights/android/vanilla/CoverCache.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/ch/blinkenlights/android/vanilla/CoverCache.java b/app/src/main/java/ch/blinkenlights/android/vanilla/CoverCache.java index 6388b115..40ee67ac 100644 --- a/app/src/main/java/ch/blinkenlights/android/vanilla/CoverCache.java +++ b/app/src/main/java/ch/blinkenlights/android/vanilla/CoverCache.java @@ -100,7 +100,7 @@ public class CoverCache { /** * Returns a (possibly uncached) cover for the song - will return null if the song has no cover * - * @param key The cache key to use for storing a generated cover + * @param ctx The context to retrieve the bitmap from cache via external content uri * @param song The song used to identify the artwork to load * @return a bitmap or null if no artwork was found */ @@ -330,7 +330,7 @@ public class CoverCache { * Stores a bitmap in the disk cache, does not update existing objects * * @param key The cover key to use - * @param Bitmap The bitmap to store + * @param cover The cover to store as bitmap */ public void put(CoverKey key, Bitmap cover) { SQLiteDatabase dbh = getWritableDatabase(); @@ -390,6 +390,7 @@ public class CoverCache { * Attempts to create a new bitmap object for given song. * Returns null if no cover art was found * + * @param ctx The context to read the external content uri of the given song * @param song the function will search for artwork of this object * @param maxPxCount the maximum amount of pixels to return (30*30 = 900) */