diff --git a/.github/badges/coverage.svg b/.github/badges/coverage.svg index 9029937..b750dd9 100644 --- a/.github/badges/coverage.svg +++ b/.github/badges/coverage.svg @@ -15,7 +15,7 @@ coverage coverage - 76% - 76% + 77% + 77% diff --git a/kebbie/emulator.py b/kebbie/emulator.py index 09c6f23..226e702 100644 --- a/kebbie/emulator.py +++ b/kebbie/emulator.py @@ -402,6 +402,13 @@ def select_keyboard(self, keyboard): Args: keyboard (str): Keyboard to search. """ + if keyboard not in KEYBOARD_PACKAGE: + print( + f"Warning ! {keyboard}'s IME isn't provided (in `KEYBOARD_PACKAGE`), can't automatically select the " + "keyboard." + ) + return + ime_list = subprocess.check_output(["adb", "shell", "ime", "list", "-s"], universal_newlines=True) ime_name = None for ime in ime_list.strip().split("\n"):