Fix: Use concise Wikidata feedback message while keeping full UI text (#6318)
Some checks are pending
Android CI / Run tests and generate APK (push) Waiting to run

This commit is contained in:
Sonal Yadav 2025-05-25 18:47:04 +05:30 committed by GitHub
parent bb21e4bdcd
commit 8849f8984b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -63,7 +63,10 @@ class WikidataFeedback : BaseActivity() {
supportActionBar!!.setDisplayHomeAsUpEnabled(true)
binding.appCompatButton.setOnClickListener {
var desc = findViewById<RadioButton>(binding.radioGroup.checkedRadioButtonId).text
var desc = when (binding.radioGroup.checkedRadioButtonId) {
R.id.radioButton2 -> getString(R.string.is_at_a_different_place_wikidata, place)
else -> findViewById<RadioButton>(binding.radioGroup.checkedRadioButtonId).text
}
var det = binding.detailsEditText.text.toString()
if (binding.radioGroup.checkedRadioButtonId == R.id.radioButton3 && binding.detailsEditText.text.isNullOrEmpty()) {
Toast