Refactored preference functions so that view models cannot access preferences directly, instead having to use get/set methods, which also solves a potential bug source of defining different default values for certain properties in different view models

This commit is contained in:
denizk0461
2023-05-14 13:10:47 +02:00
parent d9a4ead7ec
commit d4e64018d2
11 changed files with 199 additions and 90 deletions
@@ -269,14 +269,14 @@
android:layout_height="wrap_content"
android:fontFamily="@font/lato_bolditalic"
android:text="@string/settings_allergens_title"
android:textSize="16sp" />
android:textSize="16sp"/>
<TextView
android:id="@+id/settings_allergens_subtitle_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/settings_allergens_subtitle"
android:textSize="16sp" />
android:textSize="16sp"/>
</androidx.appcompat.widget.LinearLayoutCompat>