fix unsupported requestShowSelf() usage on old Android versions
This commit is contained in:
parent
c19c29912b
commit
941fb3e754
1 changed files with 4 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ package io.github.sspanak.tt9;
|
|||
|
||||
import android.content.Intent;
|
||||
import android.inputmethodservice.InputMethodService;
|
||||
import android.os.Build;
|
||||
import android.os.Handler;
|
||||
import android.os.SystemClock;
|
||||
import android.text.InputType;
|
||||
|
|
@ -268,7 +269,9 @@ public class TraditionalT9 extends InputMethodService {
|
|||
mKeyMode = determineInputMode(inputField);
|
||||
|
||||
// show or hide UI elements
|
||||
requestShowSelf(1);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||
requestShowSelf(1);
|
||||
}
|
||||
updateCandidates();
|
||||
setSuggestions(null, -1);
|
||||
setCandidatesViewShown(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue