CanteenPageFragment.kt now displays the count of offers that have been hidden due to allergen and dietary preferences

This commit is contained in:
denizk0461
2023-05-14 19:49:09 +02:00
parent d4e64018d2
commit 14e379eebf
6 changed files with 129 additions and 33 deletions
+9 -1
View File
@@ -4,9 +4,11 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="8dp"
android:paddingVertical="4dp">
android:paddingVertical="4dp"
android:orientation="vertical">
<com.google.android.material.card.MaterialCardView
android:id="@+id/canteen_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/Widget.Material3.CardView.Outlined">
@@ -45,4 +47,10 @@
</com.google.android.material.card.MaterialCardView>
<TextView
android:id="@+id/text_difference"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"/>
</androidx.appcompat.widget.LinearLayoutCompat>
+3
View File
@@ -24,6 +24,9 @@
<string name="fetch_error_webpage_snack">Du musst deinen Stundenplan öffnen!</string>
<string name="canteen_fetch_error">Mensaplan konnte nicht heruntergeladen werden!</string>
<string name="canteen_item_difference_text_one">Ein Angebot aufgrund deiner Präferenzen versteckt.</string>
<string name="canteen_item_difference_text_other">%d Angebote aufgrund deiner Präferenzen versteckt.</string>
<string name="event_empty_fetch_button">Lade deinen Stundenplan von Stud.IP herunter</string>
<!-- plurals string resource cannot be used here because Android doesn't treat 0 differently from 2 -->
+3
View File
@@ -25,6 +25,9 @@
<string name="fetch_error_webpage_snack">You must navigate to your schedule!</string>
<string name="canteen_fetch_error">Couldn\'t retrieve the canteen plan!</string>
<string name="canteen_item_difference_text_one">One offer hidden due to your preferences.</string>
<string name="canteen_item_difference_text_other">%d offers hidden due to your preferences.</string>
<string name="event_empty_fetch_button">Download your schedule from Stud.IP</string>
<!-- plurals resource cannot be used here; view German translation for details -->