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

Commit 8dbada1d 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: Ibba9416bc2f1a8dfa0b25384d5d1c45089111812
parents d539cfdf 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();