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

Commit c1f021a1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Remove unncessary attachedToWindow check" into sc-dev am: 5a939299

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13497639

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5d5d85c940f509bc5e05d79db02ee00a095cf636
parents fc9f39b7 5a939299
Loading
Loading
Loading
Loading
+1 −1
Original line number 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.
     */
    public void updateIcon(int lightIconColor, int darkIconColor) {
        if (getCurrentView() == null || !getCurrentView().isAttachedToWindow() || mIconResId == 0) {
        if (mIconResId == 0) {
            return;
        }
        final KeyButtonDrawable currentDrawable = getImageDrawable();