()
| 2415 | } |
| 2416 | |
| 2417 | public synchronized void run() { |
| 2418 | //#ifdef PRIVACY |
| 2419 | boolean needUpdatePrivacy = false; |
| 2420 | //#endif |
| 2421 | |
| 2422 | try { |
| 2423 | while (pendingRepaints > 0) { |
| 2424 | pendingRepaints = 0; |
| 2425 | |
| 2426 | int locCursor = cursor; |
| 2427 | Object focused = (desiredFocus == null) ? getFocusedObject() : desiredFocus; |
| 2428 | desiredFocus = null; |
| 2429 | Vector tContacts = new Vector(itemsList.size()); |
| 2430 | |
| 2431 | groups.resetCounters(); |
| 2432 | |
| 2433 | synchronized (hContacts) { |
| 2434 | int j = hContacts.size(); |
| 2435 | for (int i = 0; i < j; i++) { |
| 2436 | Contact c = (Contact) hContacts.elementAt(i); |
| 2437 | Group grp = c.group; |
| 2438 | if (c.group != null) { |
| 2439 | grp.addContact(c); |
| 2440 | |
| 2441 | //#ifdef PRIVACY |
| 2442 | if (!sd.account.isGoogle) { |
| 2443 | if (QuickPrivacy.groupsList == null) { |
| 2444 | QuickPrivacy.groupsList = new Vector(); |
| 2445 | } |
| 2446 | if (c.group.type != Groups.TYPE_MUC) { |
| 2447 | if (!QuickPrivacy.groupsList.contains(c.group.name)) { |
| 2448 | QuickPrivacy.groupsList.addElement(c.group.name); |
| 2449 | needUpdatePrivacy = true; |
| 2450 | } |
| 2451 | } |
| 2452 | } |
| 2453 | //#endif |
| 2454 | } |
| 2455 | } |
| 2456 | } |
| 2457 | //#ifdef PRIVACY |
| 2458 | if (!sd.account.isGoogle) { |
| 2459 | if (needUpdatePrivacy && isLoggedIn()) { |
| 2460 | new QuickPrivacy().updateQuickPrivacyList(); |
| 2461 | } |
| 2462 | } |
| 2463 | //#endif |
| 2464 | // self-contact group |
| 2465 | Group selfContactGroup = groups.getGroup(Groups.TYPE_SELF); |
| 2466 | selfContactGroup.visible = (cf.selfContact || selfContactGroup.tonlines > 1 || selfContactGroup.unreadMessages > 0); |
| 2467 | |
| 2468 | // hiddens |
| 2469 | groups.getGroup(Groups.TYPE_IGNORE).visible = cf.ignore; |
| 2470 | |
| 2471 | // transports |
| 2472 | Group transpGroup = groups.getGroup(Groups.TYPE_TRANSP); |
| 2473 | transpGroup.visible = (cf.showTransports || transpGroup.unreadMessages > 0); |
| 2474 |
nothing calls this directly
no test coverage detected