From 9fe5d31af4c691ef9f630df52c1ada968a75fe0c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 11 Nov 2013 13:44:16 +0400 Subject: [PATCH] taskerreceiver: check for ttrss_url being blank to detect if app is not configured yet --- src/org/fox/ttrss/tasker/TaskerReceiver.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/fox/ttrss/tasker/TaskerReceiver.java b/src/org/fox/ttrss/tasker/TaskerReceiver.java index bdd85e3f..3981af7c 100644 --- a/src/org/fox/ttrss/tasker/TaskerReceiver.java +++ b/src/org/fox/ttrss/tasker/TaskerReceiver.java @@ -79,8 +79,9 @@ public class TaskerReceiver extends BroadcastReceiver { String login = prefs.getString("login", "").trim(); String password = prefs.getString("password", "").trim(); + String ttrssUrl = prefs.getString("ttrss_url", "").trim(); - if (login.equals("") || password.equals("")) { + if (ttrssUrl.equals("")) { Toast toast = Toast.makeText(fContext, "Could not download articles: not configured?", Toast.LENGTH_SHORT); toast.show(); } else {