diff options
Diffstat (limited to 'src/net/java/sip/communicator/plugin/yahooaccregwizz/FirstWizardPage.java')
-rw-r--r-- | src/net/java/sip/communicator/plugin/yahooaccregwizz/FirstWizardPage.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/net/java/sip/communicator/plugin/yahooaccregwizz/FirstWizardPage.java b/src/net/java/sip/communicator/plugin/yahooaccregwizz/FirstWizardPage.java index a973db8..569c573 100644 --- a/src/net/java/sip/communicator/plugin/yahooaccregwizz/FirstWizardPage.java +++ b/src/net/java/sip/communicator/plugin/yahooaccregwizz/FirstWizardPage.java @@ -269,8 +269,8 @@ public class FirstWizardPage { AccountID accountID = protocolProvider.getAccountID(); String password = - (String) accountID.getAccountProperties().get( - ProtocolProviderFactory.PASSWORD); + accountID + .getAccountPropertyString(ProtocolProviderFactory.PASSWORD); this.uinField.setEnabled(false); this.uinField.setText(accountID.getUserID()); @@ -287,12 +287,8 @@ public class FirstWizardPage ProtocolProviderFactory factory = YahooAccRegWizzActivator.getYahooProtocolProviderFactory(); - ArrayList registeredAccounts = factory.getRegisteredAccounts(); - - for (int i = 0; i < registeredAccounts.size(); i++) + for (AccountID accountID : factory.getRegisteredAccounts()) { - AccountID accountID = (AccountID) registeredAccounts.get(i); - if (accountName.equalsIgnoreCase(accountID.getUserID())) return true; } |