1
0
Fork 0

fixed a couple of NullPointerException-related crashes when switching to another keyboard

This commit is contained in:
sspanak 2024-11-11 10:28:38 +02:00 committed by Dimo Karaivanov
parent da5b4f17b7
commit db8a638a1b

View file

@ -26,9 +26,13 @@ abstract public class MainViewHandler extends HotkeyHandler {
} }
protected void cleanUp() { protected void cleanUp() {
mainView.removeListeners(); if (mainView != null) {
orientationListener.stop(); mainView.removeListeners();
orientationListener = null; }
if (orientationListener != null) {
orientationListener.stop();
orientationListener = null;
}
} }
public int getTextCase() { public int getTextCase() {