use content description in search fields

This commit is contained in:
Daniel Gultsch 2020-08-31 17:12:31 +02:00
parent 2de8f3d35b
commit ce81123112
3 changed files with 4 additions and 1 deletions

View File

@ -121,6 +121,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);
if (term == null) {
showKeyboard(searchField);

View File

@ -621,8 +621,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

@ -28,7 +28,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">