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

Commit 8d40ac9a authored by Frank Preel's avatar Frank Preel
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent aeaaf5f8
Loading
Loading
Loading
Loading
+6 −10
Original line number Diff line number Diff line
@@ -893,19 +893,15 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
    private boolean accountIsPremium() {
        AccountManager accountManager = AccountManager.get(mDisplayContext);
        Account[] accountList = accountManager.getAccountsByType("e.foundation.webdav.eelo");
        boolean accountIsPremium = false;

        if (accountList != null) {
        if (accountList == null) return false
        for (Account account : accountList) {
            String groupData = accountManager.getUserData(account, "group");
            if ("premium".equals(groupData)) {
                    accountIsPremium = true;
                    break;
                }
                return true;
            }
        }

        return accountIsPremium;
        return false;
    }

    @Override