From 42bd71b99f2e4a065f695f8e673190dcae6fef48 Mon Sep 17 00:00:00 2001 From: lalanator Date: Sun, 16 Feb 2020 23:29:02 +0100 Subject: [PATCH] javadoc fragmets --- .../userinterfacelayer/view/SearchWithTagsFragment.kt | 6 ++++++ .../userinterfacelayer/view/UserSearchFragment.kt | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/app/src/main/java/de/psekochbuch/exzellenzkoch/userinterfacelayer/view/SearchWithTagsFragment.kt b/app/src/main/java/de/psekochbuch/exzellenzkoch/userinterfacelayer/view/SearchWithTagsFragment.kt index 26c9262c..bac3c59b 100644 --- a/app/src/main/java/de/psekochbuch/exzellenzkoch/userinterfacelayer/view/SearchWithTagsFragment.kt +++ b/app/src/main/java/de/psekochbuch/exzellenzkoch/userinterfacelayer/view/SearchWithTagsFragment.kt @@ -9,6 +9,12 @@ import androidx.fragment.app.viewModels import de.psekochbuch.exzellenzkoch.InjectorUtils import de.psekochbuch.exzellenzkoch.userinterfacelayer.viewmodel.SearchWithTagsViewModel +/** + * The Fragment class provides logic for binding the respective .xml layout file to the class + * and calls functions from the underlying ViewModel. + * The ViewModel is provided by the ViewModelFactory, which is called here. + * SearchWithTagsFragment will bind to the SearchWithTagsFragment which will be implemented. + */ class SearchWithTagsFragment : Fragment() { override fun onCreateView( diff --git a/app/src/main/java/de/psekochbuch/exzellenzkoch/userinterfacelayer/view/UserSearchFragment.kt b/app/src/main/java/de/psekochbuch/exzellenzkoch/userinterfacelayer/view/UserSearchFragment.kt index 71a0ed5b..b8a60639 100644 --- a/app/src/main/java/de/psekochbuch/exzellenzkoch/userinterfacelayer/view/UserSearchFragment.kt +++ b/app/src/main/java/de/psekochbuch/exzellenzkoch/userinterfacelayer/view/UserSearchFragment.kt @@ -9,6 +9,13 @@ import androidx.fragment.app.viewModels import de.psekochbuch.exzellenzkoch.InjectorUtils import de.psekochbuch.exzellenzkoch.userinterfacelayer.viewmodel.UserSearchViewmodel +/** + * The Fragment class provides logic for binding the respective .xml layout file to the class + * and calls functions from the underlying ViewModel. + * The ViewModel is provided by the ViewModelFactory, which is called here. + * The UserSearchFragment should display the User Search which will be defined in an xml file + * similar to the Recipe Search + */ class UserSearchFragment : Fragment() { override fun onCreateView(