From 7f16515074e3e456a22556dc07b10e333eba72ef Mon Sep 17 00:00:00 2001 From: "marcin.jedynski" Date: Sun, 16 Dec 2018 17:37:18 +0100 Subject: [PATCH] translated strings, fixed validation filter --- .../uam/wmi/findmytutor/adapters/DutyHoursAdapter.java | 4 ++-- app/src/main/res/values-pl/strings.xml | 10 ++++++++++ app/src/main/res/values/strings.xml | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/uam/wmi/findmytutor/adapters/DutyHoursAdapter.java b/app/src/main/java/com/uam/wmi/findmytutor/adapters/DutyHoursAdapter.java index ba7041c..2de243f 100644 --- a/app/src/main/java/com/uam/wmi/findmytutor/adapters/DutyHoursAdapter.java +++ b/app/src/main/java/com/uam/wmi/findmytutor/adapters/DutyHoursAdapter.java @@ -34,8 +34,8 @@ public DutyHoursAdapter(Context context, List hours) { public List getDutyList(){ - ArrayList notEmpty = Stream.of(hours).filter(DutyHourViewModel::isValid).collect(Collectors.toList()); - return hours; + ArrayList notEmpty = Stream.of(hours).filter(DutyHourViewModel::isValid).collect(Collectors.toCollection(ArrayList::new)); + return notEmpty; } public void addDuty(DutyHourViewModel duty){ hours.add(duty); diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index bac8b17..8cfa304 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -212,6 +212,16 @@ - użytkownik jest obecnie offline - użytkownik jest nieaktywny (nie udostępnił żadnych danych o lokalizacji od conajmniej tygodnia) + Dzień + Start + Koniec + Zakład + Pokój + DODAJ DYŻUR + Godziny dyżurów + Dane kontaktowe + Twoja notka + Dziękujemy za aktualizację profilu diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8885f2e..3871a73 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -303,7 +303,7 @@ End Department Room - Email + Email ADD DUTY Duty hours Personal info -- 2.20.1