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

Commit 54735010 authored by Carlo Conserva's avatar Carlo Conserva Committed by Steve Kondik
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 feeb3a48
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -411,6 +411,7 @@ public class QSPanel extends ViewGroup {
    }

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

    @Override