mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-16 14:42:21 +01:00
use content description in search fields
(cherry picked from commit ce81123112
)
This commit is contained in:
parent
822df984b5
commit
f7479315b5
3 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue