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

Commit c9b3d431 authored by Danny Baumann's avatar Danny Baumann
Browse files

Use generic alarm intent.

Change-Id: Ibb911c1e34ec95cdd52867b8a68cce25f09dbc10
parent 4c864521
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.os.UserHandle;
import android.provider.AlarmClock;
import android.provider.Settings;
import android.text.TextUtils;
import android.view.LayoutInflater;
@@ -25,11 +25,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));
            }
        };