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

Commit 3d5c03df authored by Nader Jawad's avatar Nader Jawad
Browse files

Deprecate Drawable#getOpacity

Deprecated getOpacity method on Drawable as the graphics optimization
is no longer utilized in the framework

Bug: 118841703
Test: Build and boots
Change-Id: Ie21c9379a5e9737ed68c09c2e518732c1578b3cb
parent 8ad9ef4a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14859,7 +14859,7 @@ package android.graphics.drawable {
    method public final int getLevel();
    method public int getMinimumHeight();
    method public int getMinimumWidth();
    method public abstract int getOpacity();
    method public abstract deprecated int getOpacity();
    method public android.graphics.Insets getOpticalInsets();
    method public void getOutline(android.graphics.Outline);
    method public boolean getPadding(android.graphics.Rect);
+3 −1
Original line number Diff line number Diff line
@@ -934,11 +934,13 @@ public abstract class Drawable {
     * do account for the value of {@link #setAlpha}, but the general behavior is dependent
     * upon the implementation of the subclass.
     *
     * @deprecated This method is no longer used in graphics optimizations
     *
     * @return int The opacity class of the Drawable.
     *
     * @see android.graphics.PixelFormat
     */
    public abstract @PixelFormat.Opacity int getOpacity();
    @Deprecated public abstract @PixelFormat.Opacity int getOpacity();

    /**
     * Return the appropriate opacity value for two source opacities.  If