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

Commit 296de6c2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add documentation for QSTileState iconRes usage" into main

parents cd4a17a2 6a99599a
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(