Loading java/src/com/android/inputmethod/latin/LatinIME.java +5 −1 Original line number Diff line number Diff line Loading @@ -903,6 +903,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen ContentResolver contentResolver = mDisplayContext.getContentResolver(); boolean isDeviceProvisioned = android.provider.Settings.Global.getInt(contentResolver, android.provider.Settings.Global.DEVICE_PROVISIONED, 0) == 1; Log.d(TAG, ">>>isDeviceProvisioned=" + isDeviceProvisioned); return isDeviceProvisioned; } Loading @@ -911,16 +912,19 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen Account[] accountList = accountManager.getAccountsByType("e.foundation.webdav.eelo"); boolean accountIsPremium = false; Log.d(TAG, ">>>" + accountList); if (accountList != null) { for (Account account : accountList) { String groupData = accountManager.getUserData(account, "group"); Log.d(TAG, ">>>" + groupData); if ("premium".equals(groupData)) { Log.d(TAG, ">>> OK"); accountIsPremium = true; break; } } } Log.d(TAG, ">>>>>>" + accountIsPremium); return accountIsPremium; } Loading Loading
java/src/com/android/inputmethod/latin/LatinIME.java +5 −1 Original line number Diff line number Diff line Loading @@ -903,6 +903,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen ContentResolver contentResolver = mDisplayContext.getContentResolver(); boolean isDeviceProvisioned = android.provider.Settings.Global.getInt(contentResolver, android.provider.Settings.Global.DEVICE_PROVISIONED, 0) == 1; Log.d(TAG, ">>>isDeviceProvisioned=" + isDeviceProvisioned); return isDeviceProvisioned; } Loading @@ -911,16 +912,19 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen Account[] accountList = accountManager.getAccountsByType("e.foundation.webdav.eelo"); boolean accountIsPremium = false; Log.d(TAG, ">>>" + accountList); if (accountList != null) { for (Account account : accountList) { String groupData = accountManager.getUserData(account, "group"); Log.d(TAG, ">>>" + groupData); if ("premium".equals(groupData)) { Log.d(TAG, ">>> OK"); accountIsPremium = true; break; } } } Log.d(TAG, ">>>>>>" + accountIsPremium); return accountIsPremium; } Loading