LatinIME/java/src/com/android/inputmethod
Yohei Yukawa fdfc55d3db Introduce a custom intent action to close software keyboard
This CL introduces a custom intent action for apps to ask AOSP Keyboard to
close its software keyboard with guarding it with a signature-protected
permission.

Any app that is signed with the same signature as AOSP Keyboard can have
the following line in AndroidManifest.xml

  <uses-permission
          android:name="com.android.inputmethod.latin.HIDE_SOFT_INPUT"/>

to request AOSP Keyboard to close its software keyboard as follows.

  sendBroadcast(new Intent("com.android.inputmethod.latin.HIDE_SOFT_INPUT")
          .setPackage("com.android.inputmethod.latin"));

Test: Manually verified with a test app.
Fixes: 65270710
Change-Id: I4fd2e3a7336ec66c70582a2f274a200cbf035a7f
2017-09-01 00:22:21 -07:00
..
accessibility Calling getClass on a class will return Class.class. 2016-05-09 20:55:28 -07:00
compat Follow class package change: LocaleList 2016-05-17 15:48:39 -07:00
dictionarypack Revert "Close FileChannels in UpdateHandler#copyFile." 2016-03-03 21:11:14 +00:00
event Disable the Burmese keyboard. 2015-01-29 10:17:33 -08:00
keyboard Merge "Hide settings-key until the device is unlocked." 2016-01-07 19:03:40 +00:00
latin Introduce a custom intent action to close software keyboard 2017-09-01 00:22:21 -07:00