Пример #1
0
 public void leaveGroup(String idRoom) {
   int n = 0;
   ChatScreen cs;
   TombolRoomField trf;
   for (n = 0; n < chatss.length; n++) {
     cs = chatss[n];
     if (cs != null)
       if (cs.getIdRoom().equals(idRoom)) {
         this.chatss[n] = null;
         break;
       }
   }
   for (n = 0; n < AktifRoom.getFieldCount(); n++) {
     trf = (TombolRoomField) AktifRoom.getField(n);
     if (trf.getRoom().getIdRoom().equals(idRoom)) {
       AktifRoom.delete(trf);
     }
   }
   PushController.updateIndicator(false);
   InetConn.getWebData(
       Util.GetURLChat()
           + "inout.php?id="
           + idRoom
           + "&pin="
           + pin
           + "&in=false&nick="
           + DBStor.get_setting().getNick(),
       new WebDataCallback() {
         public void callback(String data) {}
       });
   cs = null;
   trf = null;
 }
Пример #2
0
 public void removeFromFav(RoomChat rc, TombolRoomField field) {
   int n = 0;
   RoomChat tf2;
   for (n = 0; n < favRomm.size(); n++) {
     tf2 = (RoomChat) favRomm.elementAt(n);
     if (tf2.getIdRoom().equals(rc.getIdRoom())) {
       favRomm.removeElementAt(n);
       favRomm.trimToSize();
       DBStor.set_roomFav(favRomm);
       break;
     }
   }
   Favourite.delete(field);
 }