taskerreceiver: check for ttrss_url being blank to detect if app is not

configured yet
This commit is contained in:
Andrew Dolgov 2013-11-11 13:44:16 +04:00
parent 71d0bcea5a
commit 9fe5d31af4

View File

@ -79,8 +79,9 @@ public class TaskerReceiver extends BroadcastReceiver {
String login = prefs.getString("login", "").trim(); String login = prefs.getString("login", "").trim();
String password = prefs.getString("password", "").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 toast = Toast.makeText(fContext, "Could not download articles: not configured?", Toast.LENGTH_SHORT);
toast.show(); toast.show();
} else { } else {