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

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

Move keyboard event handling code to separate LatinKeyboardBaseView class

To sort out the issue, main keyboard and mini keyboard have to share
the pointer trackers.

In order to prepare for that, KeyboardView needs to be refactored as
two separate classes. KeyboardView is responsible for drawing keyboard
visual. And LatinKeyboardBaseView is responsible for handling key
event and mini keyboard as well.

Bug: 4768084

Change-Id: I5643e333b9bdfde0c939a0693cea76bd22f38897
parent 386899a8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ import com.android.inputmethod.compat.AccessibilityEventCompatUtils;
import com.android.inputmethod.compat.MotionEventCompatUtils;
import com.android.inputmethod.keyboard.Key;
import com.android.inputmethod.keyboard.KeyDetector;
import com.android.inputmethod.keyboard.KeyboardView;
import com.android.inputmethod.keyboard.LatinKeyboardBaseView;
import com.android.inputmethod.keyboard.PointerTracker;

public class AccessibleKeyboardViewProxy {
@@ -40,7 +40,7 @@ public class AccessibleKeyboardViewProxy {
    private static final long DELAY_KEY_PRESS = 10;

    private int mScaledEdgeSlop;
    private KeyboardView mView;
    private LatinKeyboardBaseView mView;
    private AccessibleKeyboardActionListener mListener;
    private FlickGestureDetector mGestureDetector;

@@ -57,7 +57,7 @@ public class AccessibleKeyboardViewProxy {
        return sInstance;
    }

    public static void setView(KeyboardView view) {
    public static void setView(LatinKeyboardBaseView view) {
        sInstance.mView = view;
    }

Loading