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

Commit 676c5087 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android Git Automerger
Browse files

am 45869607: Disable time and user switcher click targets when collapsed

* commit '458696075ccbcc6dc320a4a83712f222a440fbbc':
  Disable time and user switcher click targets when collapsed
parents 316075a2 5d6957ea
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -134,6 +134,7 @@ public class StatusBarHeaderView extends RelativeLayout implements View.OnClickL
            updateSystemIconsLayoutParams();
            updateBrightnessControllerState();
            updateZTranslation();
            updateClickTargets();
            if (mQSPanel != null) {
                mQSPanel.setExpanded(expanded);
            }
@@ -208,6 +209,11 @@ public class StatusBarHeaderView extends RelativeLayout implements View.OnClickL
        }
    }

    private void updateClickTargets() {
        mDateTime.setClickable(mExpanded);
        mMultiUserSwitch.setClickable(mExpanded);
    }

    private void updateZTranslation() {

        // If we are on the Keyguard, we need to set our z position to zero, so we don't get