package org.cyanogenmod.launcher.home.api.sdkexample.receiver;

import android.util.Log;

import org.cyanogenmod.launcher.home.api.cards.DataCard;
import org.cyanogenmod.launcher.home.api.receiver.CmHomeCardChangeReceiver;

/**
 * An extension of CmHomeCardChangeReceiver, that implements the callback for
 * when a card is deleted.
 */
public class CardDeletedBroadcastReceiver extends CmHomeCardChangeReceiver{
    public static final String TAG = "CardDeletedBroadcastReceiver";

    @Override
    protected void onCardDeleted(DataCard.CardDeletedInfo cardDeletedInfo) {
        Log.i(TAG, "CM Home API card was deleted: id: " + cardDeletedInfo.getId()
                   + ", internalID: " + cardDeletedInfo.getInternalId()
                   + ", authority: " + cardDeletedInfo.getAuthority()
                   + ", globalID: " + cardDeletedInfo.getGlobalId());
    }
}

@@ -57,16 +57,48 @@
 eiver;%0A%0A
+import android.content.Context;%0A
 import a
@@ -555,16 +555,33 @@
 Deleted(
+Context context, 
 DataCard
@@ -909,17 +909,16 @@
 alId());
-%0A
     %7D%0A%7D%0A

Add Context parameter to onCardDelete to match SDK