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

Commit a2940869 authored by Carlo Conserva's avatar Carlo Conserva Committed by Roman Birg
Browse files

SystemUI: fix profiles tile disappearing after profile selection.

This should fix a race condition between the modified method and
the onStateChanged callback method (lines 278-287 of the same file)
that is causing the profiles tile to disappear most of the times
after selecting a new profile and pressing "Done" in the detail view.

Change-Id: I40074cd8247879c843cd24e3749075876750d519
parent 002fdf47
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -400,6 +400,7 @@ public class QSPanel extends ViewGroup {
    }
    }


    private void setGridContentVisibility(boolean visible) {
    private void setGridContentVisibility(boolean visible) {
        mGridContentVisible = visible;
        int newVis = visible ? VISIBLE : INVISIBLE;
        int newVis = visible ? VISIBLE : INVISIBLE;
        for (int i = 0; i < mRecords.size(); i++) {
        for (int i = 0; i < mRecords.size(); i++) {
            TileRecord tileRecord = mRecords.get(i);
            TileRecord tileRecord = mRecords.get(i);
@@ -408,7 +409,6 @@ public class QSPanel extends ViewGroup {
            }
            }
        }
        }
        mBrightnessView.setVisibility(showBrightnessSlider() ? newVis : GONE);
        mBrightnessView.setVisibility(showBrightnessSlider() ? newVis : GONE);
        mGridContentVisible = visible;
    }
    }


    @Override
    @Override