Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4546117 authored by Frank Preel's avatar Frank Preel
Browse files

Debug

parent f9f30cc5
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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)) {
@@ -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;