  private boolean isRelevant(Context context, Intent intent) {
    if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.DONUT) {
      return false;
    }
    if (!ApplicationMigrationService.isDatabaseImported(context)) {
      return false;
    }
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT &&
        Telephony.Sms.Intents.WAP_PUSH_RECEIVED_ACTION.equals(intent.getAction()) &&
        Util.isDefaultSmsProvider(context))
    {
      return false;
    }
    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT &&
        PreferenceManager.getDefaultSharedPreferences(context)
                         .getBoolean(ApplicationPreferencesActivity.ALL_MMS_PERF, true))
    {
      return true;
    }
    byte[] mmsData   = intent.getByteArrayExtra("data");
    PduParser parser = new PduParser(mmsData);
    GenericPdu pdu   = parser.parse();
    if (pdu.getMessageType() != PduHeaders.MESSAGE_TYPE_NOTIFICATION_IND)
      return false;
    NotificationInd notificationPdu = (NotificationInd)pdu;
    if (notificationPdu.getSubject() == null)
      return false;
    return WirePrefix.isEncryptedMmsSubject(notificationPdu.getSubject().getString());
  }

  private boolean isRelevant(Context context, Intent intent) {
    if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.DONUT) {
      return false;
    }
    if (!ApplicationMigrationService.isDatabaseImported(context)) {
      return false;
    }
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT &&
        Telephony.Sms.Intents.WAP_PUSH_RECEIVED_ACTION.equals(intent.getAction()) &&
        Util.isDefaultSmsProvider(context))
    {
      return false;
    }
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT ||
        PreferenceManager.getDefaultSharedPreferences(context)
                         .getBoolean(ApplicationPreferencesActivity.ALL_MMS_PERF, true))
    {
      return true;
    }
    byte[] mmsData   = intent.getByteArrayExtra("data");
    PduParser parser = new PduParser(mmsData);
    GenericPdu pdu   = parser.parse();
    if (pdu.getMessageType() != PduHeaders.MESSAGE_TYPE_NOTIFICATION_IND)
      return false;
    NotificationInd notificationPdu = (NotificationInd)pdu;
    if (notificationPdu.getSubject() == null)
      return false;
    return WirePrefix.isEncryptedMmsSubject(notificationPdu.getSubject().getString());
  }
