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

Commit 081e30fe authored by Joey's avatar Joey Committed by Bruno Martins
Browse files

SystemUI: disable tuner



Change-Id: I8a8c495e8ea53fe936eafefd89207bee75ce6f00
Signed-off-by: default avatarJoey <joey@lineageos.org>
parent 4d371dfe
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -309,8 +309,7 @@ public class QSFooterImpl extends FrameLayout implements QSFooter,

    private void updateVisibilities() {
        updateAlarmVisibilities();
        mSettingsContainer.findViewById(R.id.tuner_icon).setVisibility(
                TunerService.isTunerEnabled(mContext) ? View.VISIBLE : View.INVISIBLE);
        mSettingsContainer.findViewById(R.id.tuner_icon).setVisibility(View.INVISIBLE);
        final boolean isDemo = UserManager.isDeviceInDemoMode(mContext);

        mMultiUserSwitch.setVisibility(mExpanded && mMultiUserSwitch.hasMultipleUsers() && !isDemo
+0 −9
Original line number Diff line number Diff line
@@ -58,16 +58,7 @@ public class SettingsButton extends AlphaOptimizedImageButton {
    @Override
    public boolean onTouchEvent(MotionEvent event) {
        switch (event.getActionMasked()) {
            case MotionEvent.ACTION_DOWN:
                postDelayed(mLongPressCallback, LONG_PRESS_LENGTH);
                break;
            case MotionEvent.ACTION_UP:
                if (mUpToSpeed) {
                    startExitAnimation();
                } else {
                    cancelLongClick();
                }
                break;
            case MotionEvent.ACTION_CANCEL:
                cancelLongClick();
                break;