Skip to content
Snippets Groups Projects
Commit c9e5f307 authored by Francesco Andreuzzi's avatar Francesco Andreuzzi
Browse files

fixed npe when removing suggestions

parent 5f91058e
No related branches found
No related tags found
No related merge requests found
...@@ -256,7 +256,9 @@ public class UIManager implements OnTouchListener { ...@@ -256,7 +256,9 @@ public class UIManager implements OnTouchListener {
mTerminalAdapter.setInputListener(new OnNewInputListener() { mTerminalAdapter.setInputListener(new OnNewInputListener() {
@Override @Override
public void onNewInput(String input) { public void onNewInput(String input) {
if(suggestionsView != null) {
suggestionsView.removeAllViews(); suggestionsView.removeAllViews();
}
trigger.exec(input, mTerminalAdapter.getCurrentOutputId()); trigger.exec(input, mTerminalAdapter.getCurrentOutputId());
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment