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() {
|
||||
mainView.removeListeners();
|
||||
orientationListener.stop();
|
||||
orientationListener = null;
|
||||
if (mainView != null) {
|
||||
mainView.removeListeners();
|
||||
}
|
||||
if (orientationListener != null) {
|
||||
orientationListener.stop();
|
||||
orientationListener = null;
|
||||
}
|
||||
}
|
||||
|
||||
public int getTextCase() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue