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

Commit 9a15b7c5 authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

Sets clickability of QuickStatusBarHeader

Sets the clickability based on QS expansion. Then, when it's expanded,
it is not clickable as QSPanel captures clicks. The top status bar is
always clickable

Test: manual, including brightness slider
Change-Id: Id41473f823285f115240effbea7a2d52596b9bfe
Fixes: 120873445
parent be09f280
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@
    android:clipToPadding="false"
    android:gravity="center"
    android:orientation="horizontal"
    android:clickable="true"
    android:paddingStart="@dimen/status_bar_padding_start"
    android:paddingEnd="@dimen/status_bar_padding_end" >

+1 −1
Original line number Diff line number Diff line
@@ -699,7 +699,7 @@ public class QuickStatusBarHeader extends RelativeLayout implements
    }

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

    public void setQSPanel(final QSPanel qsPanel) {