Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a99599a authored by Behnam Heydarshahi's avatar Behnam Heydarshahi
Browse files

Add documentation for QSTileState iconRes usage

Bug: b/362500319
Test: EXEMPT comment only
Flag: EXEMPT comment only
Change-Id: I87d4b3f1e26bf0b43159bdec8964b575e6ceb388
parent 9b3faeef
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -29,6 +29,14 @@ import com.android.systemui.common.shared.model.Icon.Loaded
sealed class Icon {
    abstract val contentDescription: ContentDescription?

    /**
     * An icon that is already loaded.
     *
     * @param res The resource ID of the icon. For when we want to have Loaded icon, but still keep
     * a reference to the resource id. A use case would be for tests that have to compare animated
     * drawables. It should only be used for SystemUI/frameworks resources and not for other
     * packages' resources as they may collide with SystemUI.
     */
    data class Loaded
    @JvmOverloads
    constructor(
+0 −3
Original line number Diff line number Diff line
@@ -29,9 +29,6 @@ import kotlin.reflect.KClass
 * [QSTileState.build] for better state creation experience and preset default values for certain
 * fields.
 *
 * @param iconRes For when we want to have Loaded icon, but still keep a reference to the resource
 *   id. A use case would be for tests that have to compare animated drawables.
 *
 * // TODO(b/http://b/299909989): Clean up legacy mappings after the transition
 */
data class QSTileState(