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

Commit e61fc94b authored by Chet Haase's avatar Chet Haase Committed by Android (Google) Code Review
Browse files

Merge "Remove View.getBackgroundColor()" into mnc-dev

parents b386e77e 3dcb9945
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -17174,21 +17174,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        }
    }
    /**
     * If the view has a ColorDrawable background, returns the color of that
     * drawable.
     *
     * @return The color of the ColorDrawable background, if set, otherwise 0.
     * @hide
     */
    @ColorInt
    public int getBackgroundColor() {
        if (mBackground instanceof ColorDrawable) {
            return ((ColorDrawable) mBackground).getColor();
        }
        return 0;
    }
    /**
     * Set the background to a given resource. The resource should refer to
     * a Drawable object or 0 to remove the background.