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

Commit 34f042d2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Updated ColorDrawable setAlpha/getAlpha documentation"

parents 7d60ed91 fc063e9c
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -149,9 +149,13 @@ public class ColorDrawable extends Drawable {
    }

    /**
     * Returns the alpha value of this drawable's color.
     * Returns the alpha value of this drawable's color. Note this may not be the same alpha value
     * provided in {@link Drawable#setAlpha(int)}. Instead this will return the alpha of the color
     * combined with the alpha provided by setAlpha
     *
     * @return A value between 0 and 255.
     *
     * @see ColorDrawable#setAlpha(int)
     */
    @Override
    public int getAlpha() {
@@ -159,7 +163,9 @@ public class ColorDrawable extends Drawable {
    }

    /**
     * Sets the color's alpha value.
     * Applies the given alpha to the underlying color. Note if the color already has
     * an alpha applied to it, this will apply this alpha to the existing value instead of
     * overwriting it.
     *
     * @param alpha The alpha value to set, between 0 and 255.
     */