Пример #1
0
 private void sendQuestion(Protocol protocol, Contact contact) {
   if (uncheckedUins.contains(contact.getUserId())) {
     uncheckedUins.removeElement(contact.getUserId());
     return;
   }
   String message = Options.getString(JLocale.getString(R.string.pref_antispam_msg));
   if (protocol.isMeVisible(contact) && !StringConvertor.isEmpty(message)) {
     protocol.sendMessage(contact, "I don't like spam!\n" + message, false);
     uncheckedUins.addElement(contact.getUserId());
   }
 }
Пример #2
0
 private void addTextField_(String controlId, String label, String text) {
   Control c = create(controlId, CONTROL_INPUT, null, label);
   text = StringConvertor.notNull(text);
   c.text = text;
   add(c);
 }