diff --git a/app/src/main/res/layout/activity_preferences.xml b/app/src/main/res/layout/activity_preferences.xml index 00b72e0b74..eef88c7bad 100644 --- a/app/src/main/res/layout/activity_preferences.xml +++ b/app/src/main/res/layout/activity_preferences.xml @@ -34,7 +34,7 @@ + android:layout_height="wrap_content" /> diff --git a/core/src/main/java/info/nightscout/androidaps/utils/DateUtil.java b/core/src/main/java/info/nightscout/androidaps/utils/DateUtil.java index 46fac31626..256b5215de 100644 --- a/core/src/main/java/info/nightscout/androidaps/utils/DateUtil.java +++ b/core/src/main/java/info/nightscout/androidaps/utils/DateUtil.java @@ -42,12 +42,10 @@ import info.nightscout.androidaps.utils.resources.ResourceHelper; @Singleton public class DateUtil { private final Context context; - private final ResourceHelper resourceHelper; @Inject - public DateUtil(Context context, ResourceHelper resourceHelper) { + public DateUtil(Context context) { this.context = context; - this.resourceHelper = resourceHelper; } /** @@ -193,10 +191,6 @@ public class DateUtil { return new DateTime(mills).toString(DateTimeFormat.forPattern(format)); } - public static String timeFullString(long mills) { - return new DateTime(mills).toString(DateTimeFormat.fullTime()); - } - public String dateAndTimeString(Date date) { return dateString(date) + " " + timeString(date); } @@ -279,10 +273,6 @@ public class DateUtil { return diff > T.mins(minutes).msecs(); } - public static GregorianCalendar gregorianCalendar() { - return new GregorianCalendar(); - } - public static long getTimeZoneOffsetMs() { return new GregorianCalendar().getTimeZone().getRawOffset(); }