mirror of
https://github.com/appium/appium.git
synced 2026-02-12 04:50:08 -06:00
Fix handling of ime activation
This commit is contained in:
@@ -1112,11 +1112,9 @@ androidController.getActiveIMEEngine = function (cb) {
|
||||
|
||||
androidController.activateIMEEngine = function (imeId, cb) {
|
||||
logger.debug('Attempting to activate IME \'' + imeId + '\'');
|
||||
var pkg = imeId.split('/')[0];
|
||||
logger.debug('Checking if package \'' + pkg + '\' is installed');
|
||||
this.adb.isAppInstalled(pkg, function (err, installed) {
|
||||
this.adb.availableIMEs(function (err, engines) {
|
||||
if (err) return cb(err);
|
||||
if (installed) {
|
||||
if (engines.indexOf(imeId) !== -1) {
|
||||
logger.debug('Found installed IME, attempting to activate.');
|
||||
this.adb.enableIME(imeId, function (err) {
|
||||
if (err) return cb(err);
|
||||
|
||||
Reference in New Issue
Block a user