Compare commits
	
		
			2 Commits
		
	
	
		
			d1263b46b6
			...
			fff0bde9d8
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| fff0bde9d8 | |||
| f9c76ba951 | 
@@ -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());
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user