Loading java/src/com/android/inputmethod/latin/LatinIME.java +6 −1 Original line number Diff line number Diff line Loading @@ -909,12 +909,15 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen private boolean accountIsPremium() { AccountManager accountManager = AccountManager.get(mDisplayContext); Log.d(TAG, ">>>" + accountManager); Account[] accountList = accountManager.getAccountsByType("e.foundation.webdav.eelo"); boolean accountIsPremium = false; Log.d(TAG, ">>>" + accountList); Log.d(TAG, ">>>" + accountList.length); if (accountList != null) { Log.d(TAG, ">>>accountList is not null"); for (Account account : accountList) { Log.d(TAG, ">>>accountList iterate..."); String groupData = accountManager.getUserData(account, "group"); Log.d(TAG, ">>>" + groupData); if ("premium".equals(groupData)) { Loading @@ -923,6 +926,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen break; } } } else { Log.d(TAG, ">>>accountList is null"); } Log.d(TAG, ">>>>>>" + accountIsPremium); return accountIsPremium; Loading Loading
java/src/com/android/inputmethod/latin/LatinIME.java +6 −1 Original line number Diff line number Diff line Loading @@ -909,12 +909,15 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen private boolean accountIsPremium() { AccountManager accountManager = AccountManager.get(mDisplayContext); Log.d(TAG, ">>>" + accountManager); Account[] accountList = accountManager.getAccountsByType("e.foundation.webdav.eelo"); boolean accountIsPremium = false; Log.d(TAG, ">>>" + accountList); Log.d(TAG, ">>>" + accountList.length); if (accountList != null) { Log.d(TAG, ">>>accountList is not null"); for (Account account : accountList) { Log.d(TAG, ">>>accountList iterate..."); String groupData = accountManager.getUserData(account, "group"); Log.d(TAG, ">>>" + groupData); if ("premium".equals(groupData)) { Loading @@ -923,6 +926,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen break; } } } else { Log.d(TAG, ">>>accountList is null"); } Log.d(TAG, ">>>>>>" + accountIsPremium); return accountIsPremium; Loading