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

Commit e04ccb52 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Remove unncessary attachedToWindow check

It was preventing icons from updating correctly

bug: 168620505
Test: Repro steps in bug no longer repro
Change-Id: I4f32dbd571b48f2e94aaff2a8be5f7e603407dba
parent 8ae80bca
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();