summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Groover <mpgroover@google.com>2021-11-10 12:24:07 -0800
committerMichael Groover <mpgroover@google.com>2021-11-10 12:24:07 -0800
commitc79ea6623c818707f7bf91da124b2cdb97cbdb32 (patch)
tree605e85a382722280ab6053b4efd38cc80d6c7c71
parentc8378b827f85233acc1f54eaa084fe436555cf86 (diff)
Correct exported state for InputMethodManagerService receiver
The InputMethodManagerService receiver that listens for CLOSE_SYSTEM_DIALOGS broadcasts was initially marked as not exported since this broadcast should be dropped by the platform when sent from apps. However since this broadcast is still valid to be used in tests, receivers registering for this broadcast should be marked as exported. This commit updates the receiver to exported to allow any tests that send this broadcast to complete successfully. Bug: 205796926 Test: atest ImeInsetsVisibilityTest Change-Id: I92cb5cab839699084b3330c88fda7d72c78c565b
-rw-r--r--services/core/java/com/android/server/inputmethod/InputMethodManagerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java
index d14ef162de3c..619071da43c5 100644
--- a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java
+++ b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java
@@ -1827,7 +1827,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
broadcastFilterForAllUsers.addAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
mContext.registerReceiverAsUser(new ImmsBroadcastReceiverForAllUsers(),
UserHandle.ALL, broadcastFilterForAllUsers, null, null,
- Context.RECEIVER_NOT_EXPORTED);
+ Context.RECEIVER_EXPORTED);
final String defaultImiId = mSettings.getSelectedInputMethod();
final boolean imeSelectedOnBoot = !TextUtils.isEmpty(defaultImiId);