fixed a crash when switching to another keyboard, that could cause the UI to remain visible forever
This commit is contained in:
parent
44ecb8999e
commit
c01906c7c4
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ public class TraditionalT9 extends KeyPadHandler {
|
|||
public int onStartCommand(Intent intent, int flags, int startId) {
|
||||
int result = super.onStartCommand(intent, flags, startId);
|
||||
|
||||
String message = intent.getStringExtra(AddWordAct.INTENT_FILTER);
|
||||
String message = intent != null ? intent.getStringExtra(AddWordAct.INTENT_FILTER) : null;
|
||||
if (message != null && !message.isEmpty()) {
|
||||
forceShowWindowIfHidden();
|
||||
UI.toastLong(self, message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue