Compare commits

..

2 Commits

Author SHA1 Message Date
fff0bde9d8 Merge remote-tracking branch 'origin/development' into development 2021-12-20 19:58:56 +01:00
f9c76ba951 Rework 2021-12-20 19:58:43 +01:00
2 changed files with 8 additions and 10 deletions

View File

@ -9,7 +9,6 @@ import com.jens.automation2.R.layout;
public class ActivityHelp extends Activity public class ActivityHelp extends Activity
{ {
@Override @Override
protected void onCreate(Bundle savedInstanceState) protected void onCreate(Bundle savedInstanceState)
{ {
@ -19,5 +18,4 @@ public class ActivityHelp extends Activity
TextView tvHelpTextEnergySaving = (TextView) findViewById(R.id.tvHelpTextEnergySaving); TextView tvHelpTextEnergySaving = (TextView) findViewById(R.id.tvHelpTextEnergySaving);
tvHelpTextEnergySaving.setMovementMethod(LinkMovementMethod.getInstance()); tvHelpTextEnergySaving.setMovementMethod(LinkMovementMethod.getInstance());
} }
}
}

View File

@ -23,7 +23,7 @@ import java.util.Map;
public class News public class News
{ {
Calendar publishDate; Calendar publishDate;
String applicablePlattform; String applicablePlatform;
Map<String,NewsTranslation> translations = new HashMap<>(); Map<String,NewsTranslation> translations = new HashMap<>();
public static class NewsTranslation public static class NewsTranslation
@ -151,9 +151,9 @@ public class News
String publishDateString = neEl.getElementsByTagName("publishDate").item(0).getTextContent(); String publishDateString = neEl.getElementsByTagName("publishDate").item(0).getTextContent();
newsEntry.setPublishDate(Miscellaneous.calendarFromLong(Long.parseLong(publishDateString) * 1000)); newsEntry.setPublishDate(Miscellaneous.calendarFromLong(Long.parseLong(publishDateString) * 1000));
newsEntry.setApplicablePlattform(neEl.getElementsByTagName("applicablePlattforms").item(0).getTextContent()); newsEntry.setApplicablePlatform(neEl.getElementsByTagName("applicablePlattforms").item(0).getTextContent());
if(newsEntry.getApplicablePlattform().equalsIgnoreCase("all") || newsEntry.getApplicablePlattform().equalsIgnoreCase(BuildConfig.FLAVOR)) if(newsEntry.getApplicablePlatform().equalsIgnoreCase("all") || newsEntry.getApplicablePlatform().equalsIgnoreCase(BuildConfig.FLAVOR))
returnList.add(newsEntry); returnList.add(newsEntry);
} }
} }
@ -199,14 +199,14 @@ public class News
this.publishDate = publishDate; this.publishDate = publishDate;
} }
public String getApplicablePlattform() public String getApplicablePlatform()
{ {
return applicablePlattform; return applicablePlatform;
} }
public void setApplicablePlattform(String applicablePlattform) public void setApplicablePlatform(String applicablePlatform)
{ {
this.applicablePlattform = applicablePlattform; this.applicablePlatform = applicablePlatform;
} }
@NonNull @NonNull