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

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

Merge "Remove unncessary attachedToWindow check" into sc-dev

parents c9efb465 e04ccb52
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -51,7 +51,7 @@ public class ContextualButton extends ButtonDispatcher {
     * Reload the drawable from resource id, should reapply the previous dark intensity.
     * Reload the drawable from resource id, should reapply the previous dark intensity.
     */
     */
    public void updateIcon(int lightIconColor, int darkIconColor) {
    public void updateIcon(int lightIconColor, int darkIconColor) {
        if (getCurrentView() == null || !getCurrentView().isAttachedToWindow() || mIconResId == 0) {
        if (mIconResId == 0) {
            return;
            return;
        }
        }
        final KeyButtonDrawable currentDrawable = getImageDrawable();
        final KeyButtonDrawable currentDrawable = getImageDrawable();