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

Commit f5096afd authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Android (Google) Code Review
Browse files

Merge "Fix intent for next alarm" into qt-dev

parents 0f6db7d1 f3db35c4
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -519,9 +519,18 @@ public class QuickStatusBarHeader extends RelativeLayout implements

    @Override
    public void onClick(View v) {
        if (v == mClockView || v == mNextAlarmContainer) {
        if (v == mClockView) {
            mActivityStarter.postStartActivityDismissingKeyguard(new Intent(
                    AlarmClock.ACTION_SHOW_ALARMS), 0);
        } else if (v == mNextAlarmContainer) {
            if (mNextAlarm.getShowIntent() != null
                    && mNextAlarm.getShowIntent().getIntent() != null) {
                mActivityStarter.postStartActivityDismissingKeyguard(
                        mNextAlarm.getShowIntent().getIntent(), 0);
            } else {
                mActivityStarter.postStartActivityDismissingKeyguard(new Intent(
                        AlarmClock.ACTION_SHOW_ALARMS), 0);
            }
        } else if (v == mPrivacyChip) {
            // Makes sure that the builder is grabbed as soon as the chip is pressed
            PrivacyDialogBuilder builder = mPrivacyChip.getBuilder();