Commit da2f4c90 authored by Friedrich Horschig's avatar Friedrich Horschig Committed by Commit Bot

Hint talkback to tell if results were in the password search

Currently, talkback only announces when the search results change.
If all elements are filtered, there will be no feedback. This changes
with this CL and talkback will announce "No Results".

Bug: 820202
Change-Id: I73133cfe77a1e5a7a1847212e3c582c52e395b20
Reviewed-on: https://chromium-review.googlesource.com/958905Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Friedrich Horschig <fhorschig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543373}
parent e0de6d37
...@@ -759,6 +759,9 @@ public class SavePasswordsPreferences ...@@ -759,6 +759,9 @@ public class SavePasswordsPreferences
if (mSearchQuery == null) { if (mSearchQuery == null) {
// If not searching, the category needs to be removed again. // If not searching, the category needs to be removed again.
getPreferenceScreen().removePreference(passwordParent); getPreferenceScreen().removePreference(passwordParent);
} else {
getView().announceForAccessibility(
getResources().getText(R.string.accessible_find_in_page_no_results));
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment