Change home screen state description to manifest page change
Bug: 383247157 Test: Manual Flag: EXEMPT bug fix Change-Id: I1c2d3aa90d2b4ee9a1beaa4fbe7db57e79ae49dc
This commit is contained in:
1 parent
d4bfadf263
commit
2bad402275
3 files changed
+15
-2
No files matched your search
@@ -70,6 +70,7 @@ import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import androidx.core.view.ViewCompat;
|
||||
|
||||
import com.android.app.animation.Interpolators;
|
||||
import com.android.launcher3.accessibility.AccessibleDragListenerAdapter;
|
||||
@@ -3519,8 +3520,15 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
|
||||
|
||||
@Override
|
||||
protected boolean canAnnouncePageDescription() {
|
||||
// b/383247157: Disable disruptive home screen page announcement
|
||||
return false;
|
||||
return Float.compare(mOverlayProgress, 0f) == 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void announcePageForAccessibility() {
|
||||
// Talkback focuses on AccessibilityActionView by default, so we need to modify the state
|
||||
// description there in order for the change in page scroll to be announced.
|
||||
ViewCompat.setStateDescription(mLauncher.getAccessibilityActionView(),
|
||||
getCurrentPageDescription());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user