taskerreceiver: check for ttrss_url being blank to detect if app is not
configured yet
This commit is contained in:
parent
71d0bcea5a
commit
9fe5d31af4
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user