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

Commit 50805412 authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge \"Don\'t allow enable/disable of tuner on lockscreen\" into nyc-dev

am: 8933c41b

Change-Id: I2e24199ee933ac9d18c97858f27408092c3546e5
parents 47d17a4f 8933c41b
Loading
Loading
Loading
Loading
+14 −11
Original line number Diff line number Diff line
@@ -321,20 +321,23 @@ public class QuickStatusBarHeader extends BaseStatusBarHeader implements
                    mExpanded ? MetricsProto.MetricsEvent.ACTION_QS_EXPANDED_SETTINGS_LAUNCH
                            : MetricsProto.MetricsEvent.ACTION_QS_COLLAPSED_SETTINGS_LAUNCH);
            if (mSettingsButton.isTunerClick()) {
                mHost.startRunnableDismissingKeyguard(() -> post(() -> {
                    if (TunerService.isTunerEnabled(mContext)) {
                    TunerService.showResetRequest(mContext, new Runnable() {
                        @Override
                        public void run() {
                        TunerService.showResetRequest(mContext, () -> {
                            // Relaunch settings so that the tuner disappears.
                            startSettingsActivity();
                        }
                        });
                    } else {
                    Toast.makeText(getContext(), R.string.tuner_toast, Toast.LENGTH_LONG).show();
                        Toast.makeText(getContext(), R.string.tuner_toast,
                                Toast.LENGTH_LONG).show();
                        TunerService.setTunerEnabled(mContext, true);
                    }
            }
                    startSettingsActivity();

                }));
            } else {
                startSettingsActivity();
            }
        } else if (v == mAlarmStatus && mNextAlarm != null) {
            PendingIntent showIntent = mNextAlarm.getShowIntent();
            if (showIntent != null && showIntent.isActivity()) {