Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void autoConnect() {
- if (!SawimApplication.getInstance().isNetworkAvailable())
- return;
- int count = getProtocolCount();
- for (int i = 0; i < count; ++i) {
- Profile profile = Options.getAccount(i);
- Protocol protocol = getProtocol(Options.getAccountIndex(profile));
- if (!"".equals(protocol.getPassword()) && profile.isConnected()) {
- protocol.connect();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement