1
0
Fork 0

fixed a crash when switching to another keyboard, that could cause the UI to remain visible forever

This commit is contained in:
sspanak 2023-08-21 15:13:04 +03:00 committed by Dimo Karaivanov
parent 44ecb8999e
commit c01906c7c4

View file

@ -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);