Loading java/src/com/android/inputmethod/latin/LatinIME.java +22 −1 Original line number Diff line number Diff line Loading @@ -108,6 +108,11 @@ import com.android.inputmethod.latin.utils.ViewLayoutUtils; import android.content.ContentResolver; import android.view.inputmethod.InputMethodManager; import android.view.inputmethod.InputMethodSubtype; import android.os.IBinder; import java.io.FileDescriptor; import java.io.PrintWriter; import java.util.ArrayList; Loading @@ -118,6 +123,9 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Nonnull; import javax.annotation.Nullable; /** * Input method implementation for Qwerty'ish keyboard. */ Loading Loading @@ -880,7 +888,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen @Override public void onClick(View v) { Log.d(TAG, "Clicked"); //launchSettings(SettingsActivity.EXTRA_ENTRY_VALUE_LONG_PRESS_COMMA); switchToNextInputMethod(); } }); } else { Loading @@ -889,6 +897,19 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } } private void switchToNextInputMethod() { Log.d(TAG, "switchToNextInputMethod"); final IBinder token = getWindow().getWindow().getAttributes().token; Log.d(TAG, "switchToNextInputMethod 2"); InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); Log.d(TAG, "switchToNextInputMethod 3"); if (imm != null) { Log.d(TAG, "switchToNextInputMethod 4"); imm.switchToNextInputMethod(token, false /* onlyCurrentIme */); Log.d(TAG, "switchToNextInputMethod 5"); } } private boolean isSetupWizardFinished() { Log.d(TAG, "isSetupWizardFinished"); ContentResolver contentResolver = mDisplayContext.getContentResolver(); Loading Loading
java/src/com/android/inputmethod/latin/LatinIME.java +22 −1 Original line number Diff line number Diff line Loading @@ -108,6 +108,11 @@ import com.android.inputmethod.latin.utils.ViewLayoutUtils; import android.content.ContentResolver; import android.view.inputmethod.InputMethodManager; import android.view.inputmethod.InputMethodSubtype; import android.os.IBinder; import java.io.FileDescriptor; import java.io.PrintWriter; import java.util.ArrayList; Loading @@ -118,6 +123,9 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Nonnull; import javax.annotation.Nullable; /** * Input method implementation for Qwerty'ish keyboard. */ Loading Loading @@ -880,7 +888,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen @Override public void onClick(View v) { Log.d(TAG, "Clicked"); //launchSettings(SettingsActivity.EXTRA_ENTRY_VALUE_LONG_PRESS_COMMA); switchToNextInputMethod(); } }); } else { Loading @@ -889,6 +897,19 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } } private void switchToNextInputMethod() { Log.d(TAG, "switchToNextInputMethod"); final IBinder token = getWindow().getWindow().getAttributes().token; Log.d(TAG, "switchToNextInputMethod 2"); InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); Log.d(TAG, "switchToNextInputMethod 3"); if (imm != null) { Log.d(TAG, "switchToNextInputMethod 4"); imm.switchToNextInputMethod(token, false /* onlyCurrentIme */); Log.d(TAG, "switchToNextInputMethod 5"); } } private boolean isSetupWizardFinished() { Log.d(TAG, "isSetupWizardFinished"); ContentResolver contentResolver = mDisplayContext.getContentResolver(); Loading