Exemplo n.º 1
0
 @Override
 public boolean shouldCollapseWith(Action t) {
   if (t == null) {
     return false;
   }
   if (!(t instanceof DataAction)) {
     Log.e(TAG, "t must be DataAction");
     return false;
   }
   DataAction that = (DataAction) t;
   if (!ContactsUtils.shouldCollapse(mMimeType, mBody, that.mMimeType, that.mBody)) {
     return false;
   }
   if (!TextUtils.equals(mMimeType, that.mMimeType)
       || !ContactsUtils.areIntentActionEqual(mIntent, that.mIntent)) {
     return false;
   }
   return true;
 }