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

Commit a59215aa authored by Amin Shaikh's avatar Amin Shaikh
Browse files

Make settings icon invisible when QS is collapsed.

Also fix calling super#onAttachedToWindow in QuickStatusBarHeader.

Change-Id: I2eb8c31b2d3a9ca20ac76608650a0e42ec25e504
Fixes: 78203022
Test: visual
parent 5bdf9530
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -284,6 +284,7 @@ public class QSFooterImpl extends FrameLayout implements QSFooter,
        final boolean isDemo = UserManager.isDeviceInDemoMode(mContext);
        mMultiUserSwitch.setVisibility(showUserSwitcher(isDemo) ? View.VISIBLE : View.INVISIBLE);
        mEdit.setVisibility(isDemo || !mExpanded ? View.INVISIBLE : View.VISIBLE);
        mSettingsButton.setVisibility(isDemo || !mExpanded ? View.INVISIBLE : View.VISIBLE);
    }

    private boolean showUserSwitcher(boolean isDemo) {
+1 −0
Original line number Diff line number Diff line
@@ -366,6 +366,7 @@ public class QuickStatusBarHeader extends RelativeLayout implements

    @Override
    public void onAttachedToWindow() {
        super.onAttachedToWindow();
        Dependency.get(StatusBarIconController.class).addIconGroup(mIconManager);
        requestApplyInsets();
    }