From 04312e1929e2acc8d103e3c0bc490414bc536370 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 2 Dec 2011 18:41:11 +0300 Subject: [PATCH] ApiRequest: properly handle NOT_LOGGED_IN --- AndroidManifest.xml | 4 ++-- src/org/fox/ttrss/ApiRequest.java | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index f8ffc743..b1b469e7 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="28" + android:versionName="0.1.27"> diff --git a/src/org/fox/ttrss/ApiRequest.java b/src/org/fox/ttrss/ApiRequest.java index f4cbdf26..56a7a498 100644 --- a/src/org/fox/ttrss/ApiRequest.java +++ b/src/org/fox/ttrss/ApiRequest.java @@ -200,6 +200,8 @@ public class ApiRequest extends AsyncTask, Integer, JsonE m_lastError = ApiError.LOGIN_FAILED; } else if (error.equals("API_DISABLED")) { m_lastError = ApiError.LOGIN_FAILED; + } else if (error.equals("NOT_LOGGED_IN")) { + m_lastError = ApiError.LOGIN_FAILED; } else { Log.d(TAG, "Unknown API error: " + error); m_lastError = ApiError.API_UNKNOWN;