package io.flutter.util; | |
import android.view.KeyEvent; | |
// In the test environment, keyEvent.getUnicodeChar throws an exception. This | |
// class works around the exception by hardcoding the returned value. | |
public class FakeKeyEvent extends KeyEvent { | |
public FakeKeyEvent(int action, int keyCode) { | |
super(action, keyCode); | |
} | |
public final int getUnicodeChar() { | |
return 1; | |
} | |
} |