fix API_DISABLED reported as login incorrect

This commit is contained in:
Andrew Dolgov 2011-12-12 13:56:38 +03:00
parent 95413c7778
commit 5ee22c7d6c

View File

@ -201,7 +201,7 @@ public class ApiRequest extends AsyncTask<HashMap<String,String>, Integer, JsonE
if (error.equals("LOGIN_ERROR")) { if (error.equals("LOGIN_ERROR")) {
m_lastError = ApiError.LOGIN_FAILED; m_lastError = ApiError.LOGIN_FAILED;
} else if (error.equals("API_DISABLED")) { } else if (error.equals("API_DISABLED")) {
m_lastError = ApiError.LOGIN_FAILED; m_lastError = ApiError.API_DISABLED;
} else if (error.equals("NOT_LOGGED_IN")) { } else if (error.equals("NOT_LOGGED_IN")) {
m_lastError = ApiError.LOGIN_FAILED; m_lastError = ApiError.LOGIN_FAILED;
} else if (error.equals("INCORRECT_USAGE")) { } else if (error.equals("INCORRECT_USAGE")) {