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

Commit a4ac1036 authored by Daniel Norman's avatar Daniel Norman
Browse files

cleanup(magnify_ime): Fix flagging for new toggles.

The View object is not set if the flag isn't enabled,
so we shouldn't call functions that expect it unless
the flag is enabled.

Fix: 418067266
Test: Run WindowMagnificationSettingsTest in ABTD
Flag: com.android.server.accessibility.enable_magnification_magnify_nav_bar_and_ime
Change-Id: I319514291d93c6fa65a12ac7b6977aaa1e17b47e
parent f0f805b7
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -405,8 +405,10 @@ class WindowMagnificationSettings implements MagnificationGestureDetector.OnGest
    private void showSettingPanel(boolean resetPosition) {
        if (!mIsVisible) {
            updateUIControlsIfNeeded();
            if (Flags.enableMagnificationMagnifyNavBarAndIme()) {
                updateMagnifyTypingUI();
                updateMagnifyKeyboardUI();
            }
            setScaleSeekbar(getMagnificationScale());
            if (resetPosition) {
                mDraggableWindowBounds.set(getDraggableWindowBounds());