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

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

add debug

parent ff9468bc
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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;
    }

@@ -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;
    }