public static boolean isUser(final Context context, final User user) {
        if (user == null) {
            return false;
        }

        String login = user.login();
        if (login == null) {
            return false;
        }

        return login.equals(getLogin(context));
    }
Is the given user the owner of the default account?

@param context
@param user
@return true if default account user, false otherwise
app/src/main/java/com/github/pockethub/android/accounts/AccountUtils.java