Remove disruptive announcement when exiting folder

Accessibility announcement needs to be disabled when folder is closing

Test: Manual
Flag: EXEMPT bug fix
Fix: 383248901
Change-Id: Ie6077a1214c234946bc9fb59ce54dfa7107188bd
This commit is contained in:
Sihua Ma
2024-12-20 19:30:14 +00:00
parent 636aba5acb
commit 4cc729ebca
2 changed files with 17 additions and 0 deletions
@@ -680,6 +680,7 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
closeOpenFolder(openFolder);
mContent.bindItems(items);
mContent.setCanAnnouncePageDescriptionForFolder(true);
centerAboutIcon();
mItemsInvalidated = true;
updateTextViewFocus();
@@ -813,6 +814,7 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
@Override
protected void handleClose(boolean animate) {
mIsOpen = false;
mContent.setCanAnnouncePageDescriptionForFolder(false);
if (!animate && mCurrentAnimator != null && mCurrentAnimator.isRunning()) {
mCurrentAnimator.cancel();