Merge "Change home screen state description to manifest page change" into main
This commit is contained in:
commit
67db76e847
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;
|
||||
@@ -3527,8 +3528,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