From e11aaa0ad8eb1c6326cb14b3ec49efd680a6e08a Mon Sep 17 00:00:00 2001 From: jens Date: Sat, 20 Feb 2021 12:02:29 +0100 Subject: [PATCH] News download. --- app/src/main/java/com/jens/automation2/ActivityMainScreen.java | 2 +- app/src/main/java/com/jens/automation2/News.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/jens/automation2/ActivityMainScreen.java b/app/src/main/java/com/jens/automation2/ActivityMainScreen.java index 2a0ae05f..140decc2 100644 --- a/app/src/main/java/com/jens/automation2/ActivityMainScreen.java +++ b/app/src/main/java/com/jens/automation2/ActivityMainScreen.java @@ -411,7 +411,7 @@ public class ActivityMainScreen extends ActivityGeneric else Miscellaneous.logEvent("i", "ActivityMainScreen", "Activity not running. No need to update.", 5); - activityMainScreenInstance.checkForNews(); +// activityMainScreenInstance.checkForNews(); } @Override diff --git a/app/src/main/java/com/jens/automation2/News.java b/app/src/main/java/com/jens/automation2/News.java index 63adb9ba..ed197bcd 100644 --- a/app/src/main/java/com/jens/automation2/News.java +++ b/app/src/main/java/com/jens/automation2/News.java @@ -45,7 +45,7 @@ public class News cal.setTimeInMillis(Long.parseLong(publishDateString)); newsEntry.setPublishDate(cal); - newsEntry.setText(neEl.getElementsByTagName("applicablePlattforms").item(0).getTextContent()); + newsEntry.setApplicablePlattform(neEl.getElementsByTagName("applicablePlattforms").item(0).getTextContent()); returnList.add(newsEntry); }