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

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

Merge "Expose Resources.getFloat publicly"

parents 1f8f03b0 32365b91
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11932,6 +11932,7 @@ package android.content.res {
    method public android.graphics.drawable.Drawable getDrawable(int, android.content.res.Resources.Theme) throws android.content.res.Resources.NotFoundException;
    method public deprecated android.graphics.drawable.Drawable getDrawableForDensity(int, int) throws android.content.res.Resources.NotFoundException;
    method public android.graphics.drawable.Drawable getDrawableForDensity(int, int, android.content.res.Resources.Theme);
    method public float getFloat(int);
    method public android.graphics.Typeface getFont(int) throws android.content.res.Resources.NotFoundException;
    method public float getFraction(int, int, int);
    method public int getIdentifier(java.lang.String, java.lang.String, java.lang.String);
+1 −3
Original line number Diff line number Diff line
@@ -1129,10 +1129,8 @@ public class Resources {
     *
     * @throws NotFoundException Throws NotFoundException if the given ID does
     *         not exist or is not a floating-point value.
     * @hide Pending API council approval.
     */
    @UnsupportedAppUsage
    public float getFloat(int id) {
    public float getFloat(@DimenRes int id) {
        final TypedValue value = obtainTempTypedValue();
        try {
            mResourcesImpl.getValue(id, value, true);