Author: Adam <git@apiote.xyz>
reformat
%!v(PANIC=String method: strings: negative Repeat count)
diff --git a/app/src/main/java/ml/adamsprogs/bimba/dashboard/MainActivity.kt b/app/src/main/java/ml/adamsprogs/bimba/dashboard/MainActivity.kt index 9ad2f4caf46522af80beeebb28187e9a53a8b50a..96e5d3957337b05e928fb35b02ee4be41e56373e 100644 --- a/app/src/main/java/ml/adamsprogs/bimba/dashboard/MainActivity.kt +++ b/app/src/main/java/ml/adamsprogs/bimba/dashboard/MainActivity.kt @@ -136,6 +136,10 @@ showResults(ResultsActivity.Mode.MODE_SEARCH, text.toString()) } private fun showResults(mode: ResultsActivity.Mode, query: String = "") { + /* todo(ux,low) animation + https://developer.android.com/guide/fragments/animate + https://github.com/raheemadamboev/fab-explosion-animation-app + */ val intent = Intent(this, ResultsActivity::class.java).apply { putExtra("mode", mode) putExtra("query", query) diff --git a/app/src/main/java/ml/adamsprogs/bimba/dashboard/ui/home/HomeFragment.kt b/app/src/main/java/ml/adamsprogs/bimba/dashboard/ui/home/HomeFragment.kt index 3dd84a1133eba507fa2ac9521eab8b5dfcc8402b..6d2bf76f6bfb9ceca255fa4a85fd0de301060031 100644 --- a/app/src/main/java/ml/adamsprogs/bimba/dashboard/ui/home/HomeFragment.kt +++ b/app/src/main/java/ml/adamsprogs/bimba/dashboard/ui/home/HomeFragment.kt @@ -18,6 +18,8 @@ import ml.adamsprogs.bimba.dashboard.MainActivity import ml.adamsprogs.bimba.api.Item import ml.adamsprogs.bimba.databinding.FragmentHomeBinding +// todo search: https://github.com/material-components/material-components-android/blob/master/docs/components/Search.md + class HomeFragment : Fragment() { private var _binding: FragmentHomeBinding? = null private val binding get() = _binding!! diff --git a/app/src/main/java/ml/adamsprogs/bimba/departures/DeparturesActivity.kt b/app/src/main/java/ml/adamsprogs/bimba/departures/DeparturesActivity.kt index ee3f919a34ed8b3505c7eed4f017e97b4ef51a84..51b733ef56b74df0d568d2fd0ac41d097c95f1bb 100644 --- a/app/src/main/java/ml/adamsprogs/bimba/departures/DeparturesActivity.kt +++ b/app/src/main/java/ml/adamsprogs/bimba/departures/DeparturesActivity.kt @@ -46,7 +46,6 @@ } binding.departuresRecycler.layoutManager = LinearLayoutManager(this) adapter = BimbaDeparturesAdapter(layoutInflater, this, listOf()) { - Log.v("Departure", "clicked: $it") ModalBottomSheet(it).apply { show(supportFragmentManager, ModalBottomSheet.TAG) } diff --git a/app/src/main/res/layout/departure_bottom_sheet.xml b/app/src/main/res/layout/departure_bottom_sheet.xml index 3ba05be884664e45a1c702a6fa08fe2593768715..7bf63e7734c5c3f5539a9e373b87f194b6c83ee8 100644 --- a/app/src/main/res/layout/departure_bottom_sheet.xml +++ b/app/src/main/res/layout/departure_bottom_sheet.xml @@ -55,7 +55,6 @@ app:layout_constraintStart_toEndOf="@id/rt_icon" app:layout_constraintTop_toTopOf="@+id/rt_icon" app:srcCompat="@drawable/wheelchair" /> - <!-- todo center text --> <com.google.android.material.textview.MaterialTextView android:id="@+id/line" android:layout_width="0dp"