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

Commit 8d21bdb9 authored by Romain Guy's avatar Romain Guy
Browse files

Fix the build.

parent a7f7e2ac
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -177,7 +177,8 @@ public class ProgressBar extends View {
        Drawable drawable = a.getDrawable(R.styleable.ProgressBar_progressDrawable);
        if (drawable != null) {
            drawable = tileify(drawable, false);
            // guess mMaxHeight. but allow XML layout to override this.
            // Calling this method can set mMaxHeight, make sure the corresponding
            // XML attribute for mMaxHeight is read after calling this method
            setProgressDrawable(drawable);
        }

@@ -423,8 +424,8 @@ public class ProgressBar extends View {
        if (d != null) {
            d.setCallback(this);

            // without this code, progress bar height will be updated.
            int drawableHeight = drawable.getMinimumHeight();
            // Make sure the ProgressBar is always tall enough
            int drawableHeight = d.getMinimumHeight();
            if (mMaxHeight < drawableHeight) {
                mMaxHeight = drawableHeight;
                requestLayout();