LatinIME/java
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
..
res Merge "Import translations. DO NOT MERGE" into oc-mr1-dev 2017-08-30 21:39:00 +00:00
src/com/android/inputmethod Introduce a custom intent action to close software keyboard 2017-09-01 00:22:21 -07:00
Android.mk Revert "Revert "Use AAPT2"" 2017-05-17 22:54:28 +00:00
AndroidManifest.xml Introduce a custom intent action to close software keyboard 2017-09-01 00:22:21 -07:00
MODULE_LICENSE_APACHE2
NOTICE
proguard.flags Create a new KeyboardLayout class to represent the layout. 2015-01-30 17:24:09 -08:00