Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8aa734cf authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Only capitalize first letter of category

parent aa322ca0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -490,10 +490,14 @@ class ApplicationFragment : TimeoutFragment(R.layout.fragment_application) {
            }

            catText = catText.replace("_", " ")
            categoryTitle.text = catText
            categoryTitle.text = catText.capitalizeFirstLetter()
        }
    }

    private fun String.capitalizeFirstLetter(): String {
        return this.lowercase().replaceFirstChar { it.uppercase() }
    }

    private fun setupScreenshotRVAdapter() {
        screenshotsRVAdapter = ApplicationScreenshotsRVAdapter(origin)
        binding.recyclerView.apply {