mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
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
Some checks are pending
Android CI / Run tests and generate APK (push) Waiting to run
This commit is contained in:
parent
bb21e4bdcd
commit
8849f8984b
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue