diff options
Diffstat (limited to 'java')
4 files changed, 15 insertions, 5 deletions
diff --git a/java/AndroidManifest.xml b/java/AndroidManifest.xml index ac84c3388..633c68be3 100644 --- a/java/AndroidManifest.xml +++ b/java/AndroidManifest.xml @@ -54,6 +54,13 @@ <permission android:name="com.android.inputmethod.latin.HIDE_SOFT_INPUT" android:protectionLevel="signature"/> + <!-- To query enabled input methods. --> + <queries> + <intent> + <action android:name="android.view.InputMethod" /> + </intent> + </queries> + <application android:label="@string/english_ime_name" android:icon="@drawable/ic_launcher_keyboard" android:supportsRtl="true" @@ -65,7 +72,8 @@ <service android:name="LatinIME" android:label="@string/english_ime_name" android:permission="android.permission.BIND_INPUT_METHOD" - android:exported="true"> + android:exported="true" + android:visibleToInstantApps="true"> <intent-filter> <action android:name="android.view.InputMethod"/> </intent-filter> @@ -149,7 +157,7 @@ <activity android:name="com.android.inputmethod.dictionarypack.DownloadOverMeteredDialog" android:theme="@style/platformActivityTheme" android:label="@string/dictionary_install_over_metered_network_prompt" - android:exported="true"> + android:exported="false"> <intent-filter> <action android:name="android.intent.action.MAIN"/> </intent-filter> diff --git a/java/src/com/android/inputmethod/dictionarypack/DownloadManagerWrapper.java b/java/src/com/android/inputmethod/dictionarypack/DownloadManagerWrapper.java index 6f6b02637..e2e9a7e44 100644 --- a/java/src/com/android/inputmethod/dictionarypack/DownloadManagerWrapper.java +++ b/java/src/com/android/inputmethod/dictionarypack/DownloadManagerWrapper.java @@ -26,6 +26,7 @@ import android.os.ParcelFileDescriptor; import android.util.Log; import java.io.FileNotFoundException; +import java.util.Arrays; import javax.annotation.Nullable; @@ -62,7 +63,8 @@ public class DownloadManagerWrapper { // We couldn't remove the file from DownloadManager. Apparently, the database can't // be opened. It may be a problem with file system corruption. In any case, there is // not much we can do apart from avoiding crashing. - Log.e(TAG, "Can't remove files with ID " + ids + " from download manager", e); + Log.e(TAG, "Can't remove files with ID " + Arrays.toString(ids) + + " from download manager", e); } } diff --git a/java/src/com/android/inputmethod/keyboard/PointerTracker.java b/java/src/com/android/inputmethod/keyboard/PointerTracker.java index 9764cb389..c0ac1c054 100644 --- a/java/src/com/android/inputmethod/keyboard/PointerTracker.java +++ b/java/src/com/android/inputmethod/keyboard/PointerTracker.java @@ -281,7 +281,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element, if (DEBUG_LISTENER) { final String output = code == Constants.CODE_OUTPUT_TEXT ? key.getOutputText() : Constants.printableCode(code); - Log.d(TAG, String.format("[%d] onCodeInput: %4d %4d %s%s%s", mPointerId, x, y, + Log.d(TAG, String.format("[%d] onCodeInput: %4d %4d %s%s%s%s", mPointerId, x, y, output, ignoreModifierKey ? " ignoreModifier" : "", altersCode ? " altersCode" : "", key.isEnabled() ? "" : " disabled")); } diff --git a/java/src/com/android/inputmethod/latin/utils/CursorAnchorInfoUtils.java b/java/src/com/android/inputmethod/latin/utils/CursorAnchorInfoUtils.java index c90d30c42..41090c054 100644 --- a/java/src/com/android/inputmethod/latin/utils/CursorAnchorInfoUtils.java +++ b/java/src/com/android/inputmethod/latin/utils/CursorAnchorInfoUtils.java @@ -216,7 +216,7 @@ public final class CursorAnchorInfoUtils { if (isTopLeftVisible || isBottomRightVisible) { characterBoundsFlags |= CursorAnchorInfo.FLAG_HAS_VISIBLE_REGION; } - if (!isTopLeftVisible || !isTopLeftVisible) { + if (!isTopLeftVisible || !isBottomRightVisible) { characterBoundsFlags |= CursorAnchorInfo.FLAG_HAS_INVISIBLE_REGION; } if (isRtl) { |