Bug 1315201: Do not focus BottomSheetDialog in Talkback. r=sebastian

MozReview-Commit-ID: 5ZlKzq46tXC

--HG--
extra : rebase_source : e9d82ff0b06c2ccb0f394d7ec2ee457eb3b55628
This commit is contained in:
Michael Comella 2017-08-21 14:40:08 -07:00
Родитель 8c74136719
Коммит a516a99b4c
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -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) {