Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1.         public void autoConnect() {
  2.             if (!SawimApplication.getInstance().isNetworkAvailable())
  3.                 return;
  4.             int count = getProtocolCount();
  5.             for (int i = 0; i < count; ++i) {
  6.                 Profile profile = Options.getAccount(i);
  7.                 Protocol protocol = getProtocol(Options.getAccountIndex(profile));
  8.                 if (!"".equals(protocol.getPassword()) && profile.isConnected()) {
  9.                     protocol.connect();
  10.                 }
  11.             }
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement