package org.cyanogenmod.launcher.cards;

import it.gmariotti.cardslib.library.internal.Card;
import it.gmariotti.cardslib.library.internal.Card.OnUndoSwipeListListener;
import android.content.Context;

public abstract class CmCard extends Card implements OnUndoSwipeListListener {
    public static final String NO_CATEGORY = "noCategory";
    private String mCategory = NO_CATEGORY;

    public CmCard(Context context) {
        super(context);
        init();
    }

    public void setCategory(String category) {
        mCategory = category;
    }

    public String getCategory() {
        return mCategory;
    }

    public CmCard(Context context, int innerLayout) {
        super(context, innerLayout);
        init();
    }

    private void init() {
        setSwipeable(true);
        setOnUndoSwipeListListener(this);
    }

    @Override
    public abstract void onUndoSwipe(Card card, boolean timedOut);

}

@@ -454,32 +454,260 @@
  init();%0A    %7D%0A%0A
+    @Override%0A    public boolean equals(Object obj) %7B%0A        if (obj instanceof CmCard) %7B%0A            CmCard cmCard = (CmCard) obj;%0A            return cmCard.getId().equals(this.getId());%0A        %7D%0A        return false;%0A    %7D%0A%0A
     public void 

Implement CmCard equals to use Card ID.