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

Commit 3b20f73b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert "Sets views clickable according to their visibility""

parents 6169956c f3a77010
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -24,14 +24,13 @@
    android:layout_gravity="@integer/notification_panel_layout_gravity"
    android:background="@android:color/transparent"
    android:baselineAligned="false"
    android:clickable="true"
    android:clickable="false"
    android:clipChildren="false"
    android:clipToPadding="false"
    android:paddingTop="0dp"
    android:paddingEnd="0dp"
    android:paddingStart="0dp"
    android:elevation="4dp"
    android:importantForAccessibility="no" >
    android:elevation="4dp" >

    <include layout="@layout/quick_status_bar_header_system_icons" />

+0 −7
Original line number Diff line number Diff line
@@ -284,17 +284,10 @@ public class QSFooterImpl extends FrameLayout implements QSFooter,
    public void updateEverything() {
        post(() -> {
            updateVisibilities();
            updateClickabilities();
            setClickable(false);
        });
    }

    private void updateClickabilities() {
        mMultiUserSwitch.setClickable(mMultiUserSwitch.getVisibility() == View.VISIBLE);
        mEdit.setClickable(mEdit.getVisibility() == View.VISIBLE);
        mSettingsButton.setClickable(mSettingsButton.getVisibility() == View.VISIBLE);
    }

    private void updateVisibilities() {
        mSettingsContainer.setVisibility(mQsDisabled ? View.GONE : View.VISIBLE);
        mSettingsContainer.findViewById(R.id.tuner_icon).setVisibility(
+5 −0
Original line number Diff line number Diff line
@@ -426,6 +426,7 @@ public class QuickStatusBarHeader extends RelativeLayout implements
        if (mExpanded == expanded) return;
        mExpanded = expanded;
        mHeaderQsPanel.setExpanded(expanded);
        updateEverything();
    }

    /**
@@ -697,6 +698,10 @@ public class QuickStatusBarHeader extends RelativeLayout implements
                .start();
    }

    public void updateEverything() {
        post(() -> setClickable(false));
    }

    public void setQSPanel(final QSPanel qsPanel) {
        mQsPanel = qsPanel;
        setupHost(qsPanel.getHost());