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

Commit 5a59e6b4 authored by Danny Baumann's avatar Danny Baumann Committed by Ricardo Cerqueira
Browse files

Use generic alarm intent.

Change-Id: Ibb911c1e34ec95cdd52867b8a68cce25f09dbc10
parent 3e666376
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
package com.android.systemui.quicksettings;

import android.content.ComponentName;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Handler;
import android.provider.AlarmClock;
import android.provider.Settings;
import android.text.TextUtils;
import android.view.LayoutInflater;
@@ -24,11 +24,7 @@ public class AlarmTile extends QuickSettingsTile {
        mOnClick = new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setComponent(new ComponentName(
                        "com.android.deskclock",
                        "com.android.deskclock.AlarmClock"));
                startSettingsActivity(intent);
                startSettingsActivity(new Intent(AlarmClock.ACTION_SET_ALARM));
            }
        };