use content description in search fields

(cherry picked from commit ce81123112)
This commit is contained in:
Daniel Gultsch 2020-08-31 17:12:31 +02:00 committed by Christian Schneppe
parent 822df984b5
commit f7479315b5
No known key found for this signature in database
GPG key ID: F30B8D686B44D87E
3 changed files with 4 additions and 1 deletions

View file

@ -124,6 +124,7 @@ public class SearchActivity extends XmppActivity implements TextWatcher, OnSearc
}
searchField.addTextChangedListener(this);
searchField.setHint(R.string.search_messages);
searchField.setContentDescription(getString(R.string.search_messages));
searchField.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE);
showKeyboard(searchField);
return super.onCreateOptionsMenu(menu);

View file

@ -620,8 +620,10 @@ public class StartConversationActivity extends XmppActivity implements XmppConne
}
if (binding.startConversationViewPager.getCurrentItem() == 0) {
mSearchEditText.setHint(R.string.search_contacts);
mSearchEditText.setContentDescription(getString(R.string.search_contacts));
} else {
mSearchEditText.setHint(R.string.search_bookmarks);
mSearchEditText.setContentDescription(getString(R.string.search_bookmarks));
}
}

View file

@ -27,7 +27,7 @@
android:id="@+id/action_security"
android:icon="?attr/icon_not_secure"
android:orderInCategory="20"
android:title="@string/action_secure"
android:title="@string/encrypted_with_omemo"
app:showAsAction="always">
<menu>
<group android:checkableBehavior="single">