Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 519e3aed authored by Candice's avatar Candice
Browse files

Remove announceForAccessibility and add pane title for WindowMagnificationSettings

Bug: 385664416
Test: manually check the accessibility announcement is removed
Test: atest WindowMagnificationSettingsTest
Flag: EXEMPT bugfix
Change-Id: If1fe6d5f35e042dfe7e7241b4aa35198ff21f0a0
parent 90914439
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@
    android:orientation="vertical"
    android:padding="@dimen/magnification_setting_background_padding"
    android:focusable="true"
    android:accessibilityPaneTitle="@string/accessibility_magnification_settings_panel_description"
    android:contentDescription="@string/accessibility_magnification_settings_panel_description">
    <LinearLayout
        android:layout_width="match_parent"
+0 −9
Original line number Diff line number Diff line
@@ -392,15 +392,6 @@ class WindowMagnificationSettings implements MagnificationGestureDetector.OnGest
            setSystemGestureExclusion();
            mIsVisible = true;
            mCallback.onSettingsPanelVisibilityChanged(/* shown= */ true);

            if (resetPosition) {
                // We could not put focus on the settings panel automatically
                // since it is an inactive window. Therefore, we announce the existence of
                // magnification settings for accessibility when it is opened.
                mSettingView.announceForAccessibility(
                        mContext.getResources().getString(
                                R.string.accessibility_magnification_settings_panel_description));
            }
        }
        mContext.registerReceiver(mScreenOffReceiver, new IntentFilter(Intent.ACTION_SCREEN_OFF));
    }