@@ -30,20 +30,6 @@ class OverlayManager @Inject constructor(
3030 private val accountManager : UserAccountManager
3131) : Injectable {
3232
33- /* *
34- * Sets the overlay icon for a folder into the provided [ImageView].
35- *
36- * The icon is only applied when:
37- * - The [folder] is not null
38- * - The [folder] represents a directory
39- * - A valid overlay icon resource can be resolved
40- *
41- * The overlay icon depends on whether the folder is configured
42- * as an auto-upload folder for the current user.
43- *
44- * @param folder The [OCFile] representing the folder.
45- * @param imageView The [ImageView] where the overlay icon will be displayed.
46- */
4733 fun setFolderOverlayIcon (folder : OCFile ? , imageView : ImageView ) {
4834 val overlayIconId = folder
4935 ?.takeIf { it.isFolder }
@@ -64,29 +50,6 @@ class OverlayManager @Inject constructor(
6450 }
6551 }
6652
67- /* *
68- * Sets the thumbnail for a folder into the provided [ImageView].
69- *
70- * This method:
71- * - Ensures the given [folder] is not null and represents a directory.
72- * - Stops any active shimmer/loading animation on [loaderImageView].
73- * - Resolves whether the folder is configured as an auto-upload folder
74- * for the current user.
75- * - Detects whether dark mode is currently enabled.
76- * - Retrieves the appropriate folder icon and overlay.
77- *
78- * The final drawable is created via `MimeTypeUtil.getFolderIcon(...)`,
79- * which returns a LayerDrawable. This drawable is built programmatically
80- * by stacking multiple layers (e.g., base folder icon + optional overlay icon)
81- * on top of each other, so everything is rendered inside a single [ImageView].
82- *
83- * @param folder The [OCFile] representing the folder.
84- * @param imageView The [ImageView] where the composed folder thumbnail
85- * will be displayed.
86- * @param loaderImageView Optional [LoaderImageView] used for shimmer/loading
87- * state handling. If provided, its shimmer animation will be stopped before
88- * applying the final icon.
89- */
9053 fun setFolderThumbnail (folder : OCFile ? , imageView : ImageView , loaderImageView : LoaderImageView ? ) {
9154 if (folder == null || ! folder.isFolder) return
9255
0 commit comments