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

Commit bb4be544 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Override onSizeChanged only on main keyboard view

Bug: 4768084
Change-Id: I555efbd1bf75691a3a2724e9d9c1a9055039aacc
parent 1bd62a56
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -350,12 +350,6 @@ public class KeyboardView extends View implements PointerTracker.DrawingProxy {
        return a.getFraction(index, 1000, 1000, 1) / 1000.0f;
        return a.getFraction(index, 1000, 1000, 1) / 1000.0f;
    }
    }


    @Override
    protected void onSizeChanged(int w, int h, int oldw, int oldh) {
        // TODO: Should notify InputMethodService instead?
        KeyboardSwitcher.getInstance().onSizeChanged();
    }

    /**
    /**
     * Attaches a keyboard to this view. The keyboard can be switched at any time and the
     * Attaches a keyboard to this view. The keyboard can be switched at any time and the
     * view will re-layout itself to accommodate the keyboard.
     * view will re-layout itself to accommodate the keyboard.
+6 −0
Original line number Original line Diff line number Diff line
@@ -290,6 +290,12 @@ public class LatinKeyboardBaseView extends KeyboardView {
        return mKeyboardActionListener;
        return mKeyboardActionListener;
    }
    }


    @Override
    protected void onSizeChanged(int w, int h, int oldw, int oldh) {
        // TODO: Should notify InputMethodService instead?
        KeyboardSwitcher.getInstance().onSizeChanged();
    }

    /**
    /**
     * Attaches a keyboard to this view. The keyboard can be switched at any time and the
     * Attaches a keyboard to this view. The keyboard can be switched at any time and the
     * view will re-layout itself to accommodate the keyboard.
     * view will re-layout itself to accommodate the keyboard.
+5 −0
Original line number Original line Diff line number Diff line
@@ -57,6 +57,11 @@ public class PopupMiniKeyboardView extends LatinKeyboardBaseView implements Popu
        setKeyPreviewPopupEnabled(false, 0);
        setKeyPreviewPopupEnabled(false, 0);
    }
    }


    @Override
    protected void onSizeChanged(int w, int h, int oldw, int oldh) {
        // Do nothing for the mini keyboard.
    }

    @Override
    @Override
    public void setKeyPreviewPopupEnabled(boolean previewEnabled, int delay) {
    public void setKeyPreviewPopupEnabled(boolean previewEnabled, int delay) {
        // Mini keyboard needs no pop-up key preview displayed, so we pass always false with a
        // Mini keyboard needs no pop-up key preview displayed, so we pass always false with a