Fixed NPE in onResume (TimeListFragment.java)
Fixed Util calculation (XmlUtilites.java)
Fixed date logging in history
Fixed StatisticsFragment.java
Fixed handling of Preferences

Signed-off-by: Fox