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

Commit f645761f authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed unnecessary layouting on wifi signal changes

This could cause a layout every few hundred ms, even
when the QS panel was closed.

Bug: 17001532
Change-Id: I3f2b9b9621dced7f5b6fff67d24efc7444b0a9ad
parent eed01e06
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -89,11 +89,9 @@ public final class SignalTileView extends QSTileView {
    protected void handleStateChanged(QSTile.State state) {
        super.handleStateChanged(state);
        final SignalState s = (SignalState) state;
        mSignal.setImageDrawable(null);  // force refresh
        mSignal.setImageResource(s.iconId);
        if (s.overlayIconId > 0) {
            mOverlay.setVisibility(VISIBLE);
            mOverlay.setImageDrawable(null);  // force refresh
            mOverlay.setImageResource(s.overlayIconId);
        } else {
            mOverlay.setVisibility(GONE);