@@ -42,7 +42,7 @@ data class MangaCover(
42
42
* [dominantCoverColors] is used to set cover/text's color in Library (Favorite) grid view.
43
43
* It contains only color for in-library (favorite) mangas.
44
44
*
45
- * It reads/saves to a hashmap in [MangaCover.coverColorMap ].
45
+ * It reads/saves to a hashmap in [MangaCover.dominantCoverColorMap ].
46
46
*
47
47
* Format: <first: cover color, second: text color>.
48
48
*
@@ -54,10 +54,10 @@ data class MangaCover(
54
54
*/
55
55
@Suppress(" KDocUnresolvedReference" )
56
56
var dominantCoverColors: Pair <Int , Int >?
57
- get() = coverColorMap [mangaId]
57
+ get() = dominantCoverColorMap [mangaId]
58
58
set(value) {
59
59
value ? : return
60
- coverColorMap [mangaId] = value.first to value.second
60
+ dominantCoverColorMap [mangaId] = value.first to value.second
61
61
}
62
62
63
63
var ratio: Float?
@@ -66,6 +66,7 @@ data class MangaCover(
66
66
value ? : return
67
67
coverRatioMap[mangaId] = value
68
68
}
69
+
69
70
companion object {
70
71
/* *
71
72
* [vibrantCoverColorMap] store color generated while browsing library.
@@ -74,13 +75,13 @@ data class MangaCover(
74
75
val vibrantCoverColorMap: HashMap <Long , Int ?> = hashMapOf()
75
76
76
77
/* *
77
- * [coverColorMap ] stores favorite manga's cover & text's color as a joined string in Prefs.
78
+ * [dominantCoverColorMap ] stores favorite manga's cover & text's color as a joined string in Prefs.
78
79
* They will be loaded each time *[App]* is initialized with *[MangaCoverMetadata.load]*.
79
80
*
80
81
* They will be saved back when *[MainActivity.onPause]* is triggered.
81
82
*/
82
83
@Suppress(" KDocUnresolvedReference" )
83
- var coverColorMap = ConcurrentHashMap <Long , Pair <Int , Int >>()
84
+ var dominantCoverColorMap = ConcurrentHashMap <Long , Pair <Int , Int >>()
84
85
85
86
var coverRatioMap = ConcurrentHashMap <Long , Float >()
86
87
// KMK <--
0 commit comments