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

Commit 3246ac08 authored by Doris Liu's avatar Doris Liu Committed by Android Git Automerger
Browse files

am 94d225d8: am e08f3b3f: Merge "Resolve CompoundButton\'s foreground drawable...

am 94d225d8: am e08f3b3f: Merge "Resolve CompoundButton\'s foreground drawable for layout direction change" into mnc-dev

* commit '94d225d8':
  Resolve CompoundButton's foreground drawable for layout direction change
parents efd9b869 94d225d8
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -244,6 +244,17 @@ public abstract class CompoundButton extends Button implements Checkable {
        }
    }

    /**
     * @hide
     */
    @Override
    public void onResolveDrawables(@ResolvedLayoutDir int layoutDirection) {
        super.onResolveDrawables(layoutDirection);
        if (mButtonDrawable != null) {
            mButtonDrawable.setLayoutDirection(layoutDirection);
        }
    }

    /**
     * @return the drawable used as the compound button image
     * @see #setButtonDrawable(Drawable)