diff --git a/app/build.gradle b/app/build.gradle index c907262b2c..02cc05d3dc 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -22,8 +22,8 @@ android { applicationId "com.eventyay.attendee" minSdkVersion 21 targetSdkVersion 28 - versionCode 12 - versionName "0.6.0" + versionCode 13 + versionName "0.6.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true multiDexEnabled true diff --git a/app/src/main/java/org/fossasia/openevent/general/event/EventDetailsFragment.kt b/app/src/main/java/org/fossasia/openevent/general/event/EventDetailsFragment.kt index dcf6895f9e..7748797710 100644 --- a/app/src/main/java/org/fossasia/openevent/general/event/EventDetailsFragment.kt +++ b/app/src/main/java/org/fossasia/openevent/general/event/EventDetailsFragment.kt @@ -267,7 +267,7 @@ class EventDetailsFragment : Fragment() { .nonNull() .observe(viewLifecycleOwner, Observer { rootView.feedbackProgress.isVisible = it - rootView.feedbackBtn.isEnabled = !it + rootView.feedbackBtn.isVisible = !it }) eventViewModel.eventFeedback.observe(viewLifecycleOwner, Observer { @@ -286,7 +286,10 @@ class EventDetailsFragment : Fragment() { eventViewModel.submittedFeedback .nonNull() .observe(viewLifecycleOwner, Observer { - feedbackAdapter.add(it) + if (feedbackAdapter.itemCount < LIMITED_FEEDBACK_NUMBER) + feedbackAdapter.add(it) + else + rootView.seeFeedbackTextView.isVisible = true rootView.feedbackRv.isVisible = true rootView.noFeedBackTv.isVisible = false }) diff --git a/app/src/main/java/org/fossasia/openevent/general/search/type/SearchTypeFragment.kt b/app/src/main/java/org/fossasia/openevent/general/search/type/SearchTypeFragment.kt index 7f59c52ba5..2a0a6ef8d5 100644 --- a/app/src/main/java/org/fossasia/openevent/general/search/type/SearchTypeFragment.kt +++ b/app/src/main/java/org/fossasia/openevent/general/search/type/SearchTypeFragment.kt @@ -28,7 +28,7 @@ class SearchTypeFragment : Fragment() { private val searchTypeViewModel by viewModel() private val safeArgs: SearchTypeFragmentArgs by navArgs() private lateinit var rootView: View - private val eventTypesList: MutableList = arrayListOf(getString(R.string.anything)) + private val eventTypesList = ArrayList() override fun onCreateView( inflater: LayoutInflater, @@ -41,6 +41,7 @@ class SearchTypeFragment : Fragment() { rootView.eventTypesRecyclerView.layoutManager = LinearLayoutManager(activity) rootView.eventTypesRecyclerView.adapter = typesAdapter searchTypeViewModel.loadEventTypes() + eventTypesList.add(getString(R.string.anything)) searchTypeViewModel.connection .nonNull() diff --git a/app/src/main/res/layout/content_event.xml b/app/src/main/res/layout/content_event.xml index 73b053eb7f..1aae5762d3 100644 --- a/app/src/main/res/layout/content_event.xml +++ b/app/src/main/res/layout/content_event.xml @@ -557,12 +557,13 @@