fixed a couple of NullPointerException-related crashes when switching to another keyboard
This commit is contained in:
parent
da5b4f17b7
commit
db8a638a1b
1 changed files with 7 additions and 3 deletions
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue