private void sendSmsListOnXmpp(ArrayList<Sms> smsList,String preMsg,String postMsg){
  XmppMsg message=new XmppMsg();
  if (sSettingsMgr.smsReplySeparate) {
    if (preMsg != null) {
      message.appendBold(preMsg);
      sendAndClear(message);
    }
    for (    Sms sms : smsList) {
      appendSMS(message,sms);
      sendAndClear(message);
      try {
        Thread.sleep(100);
      }
 catch (      InterruptedException e) {
      }
    }
    if (postMsg != null) {
      message.appendItalicLine(postMsg);
      sendAndClear(message);
    }
  }
 else {
    if (preMsg != null) {
      message.appendBoldLine(preMsg);
    }
    for (    Sms sms : smsList) {
      appendSMS(message,sms);
    }
    if (postMsg != null) {
      message.appendItalicLine(postMsg);
    }
    send(message);
  }
}

private void sendSmsListOnXmpp ( ArrayList < Sms > smsList , String preMsg , String postMsg ) { XmppMsg message = new XmppMsg ( ) ; if ( sSettingsMgr . smsReplySeparate ) { if ( preMsg != null ) { message . appendBold ( preMsg ) ; sendAndClear ( message ) ; } for ( Sms sms : smsList ) { appendSMS ( message , sms ) ; sendAndClear ( message ) ; try { Thread . sleep ( 100 ) ; } catch ( InterruptedException e ) { } } if ( postMsg != null ) { message . appendItalicLine ( postMsg ) ; sendAndClear ( message ) ; } } else { if ( preMsg != null ) { message . appendBoldLine ( preMsg ) ; } for ( Sms sms : smsList ) { appendSMS ( message , sms ) ; } if ( postMsg != null ) { message . appendItalicLine ( postMsg ) ; } send ( message ) ; } }
helper to send messages via xmpp according to the settings
