зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1315201: Do not focus BottomSheetDialog in Talkback. r=sebastian
MozReview-Commit-ID: 5ZlKzq46tXC --HG-- extra : rebase_source : e9d82ff0b06c2ccb0f394d7ec2ee457eb3b55628
This commit is contained in:
Родитель
8c74136719
Коммит
a516a99b4c
|
@ -146,6 +146,15 @@ import java.net.URISyntaxException;
|
|||
} else {
|
||||
isSuccess = false;
|
||||
}
|
||||
|
||||
// We don't want to directly focus the dialog: just the list items.
|
||||
// It's unclear if this is also fixed in the newer source code.
|
||||
final View dialogView = window.findViewById(android.support.design.R.id.design_bottom_sheet);
|
||||
if (dialogView != null) {
|
||||
dialogView.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO);
|
||||
} else {
|
||||
isSuccess = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!isSuccess) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче