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

Commit e8a37062 authored by Candice Lo's avatar Candice Lo Committed by Automerger Merge Worker
Browse files

Merge "Announce the existence of magnification settings" into udc-dev am: 2e3864c4 am: 6077ebd5

parents b453a22a 6077ebd5
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -346,6 +346,15 @@ 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));
    }