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

Commit 3158d159 authored by Cosmin Băieș's avatar Cosmin Băieș
Browse files

Refactor SimpleKeyboard into SimpleKeyboardView

This modifies SimpleKeyboard to extend FrameLayout (and consequently
removes the now redundant input_view layout). Also removes the strong
dependency on SimpleInputMethodService by introducing KeyPressListener.
Renames some fields and methods to better reflect what they represent.
Modifies SimpleInputMethodService to only inflate the views once in
onCreateInputView, rather than re-inflate every time onStartInputView is
called. Lastly optimized KeyCodeConstats to have a static switch
statement rather than initialize a HashMap.

Flag: EXEMPT testfix
Bug: 394328311
Test: atest InputMethodServiceTest
Change-Id: I14c3ad5d7f800e421fd4377c9ded5bf3d0af232f
parent ad7eeefc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment