blob: 2c9b9ceb1c3b85aeddf8e77d1d0fdc7e7968cc39 [file] [log] [blame]
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;
}
}