Merge "IMMS: Make IMMS PendingIntents immutable" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5ccf55eb8a
@@ -1494,7 +1494,8 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
|
|||||||
|
|
||||||
Intent intent = new Intent(ACTION_SHOW_INPUT_METHOD_PICKER)
|
Intent intent = new Intent(ACTION_SHOW_INPUT_METHOD_PICKER)
|
||||||
.setPackage(mContext.getPackageName());
|
.setPackage(mContext.getPackageName());
|
||||||
mImeSwitchPendingIntent = PendingIntent.getBroadcast(mContext, 0, intent, 0);
|
mImeSwitchPendingIntent = PendingIntent.getBroadcast(mContext, 0, intent,
|
||||||
|
PendingIntent.FLAG_IMMUTABLE);
|
||||||
|
|
||||||
mShowOngoingImeSwitcherForPhones = false;
|
mShowOngoingImeSwitcherForPhones = false;
|
||||||
|
|
||||||
@@ -2186,7 +2187,8 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
|
|||||||
mCurIntent.putExtra(Intent.EXTRA_CLIENT_LABEL,
|
mCurIntent.putExtra(Intent.EXTRA_CLIENT_LABEL,
|
||||||
com.android.internal.R.string.input_method_binding_label);
|
com.android.internal.R.string.input_method_binding_label);
|
||||||
mCurIntent.putExtra(Intent.EXTRA_CLIENT_INTENT, PendingIntent.getActivity(
|
mCurIntent.putExtra(Intent.EXTRA_CLIENT_INTENT, PendingIntent.getActivity(
|
||||||
mContext, 0, new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS), 0));
|
mContext, 0, new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS),
|
||||||
|
PendingIntent.FLAG_IMMUTABLE));
|
||||||
|
|
||||||
if (bindCurrentInputMethodServiceLocked(mCurIntent, this, IME_CONNECTION_BIND_FLAGS)) {
|
if (bindCurrentInputMethodServiceLocked(mCurIntent, this, IME_CONNECTION_BIND_FLAGS)) {
|
||||||
mLastBindTime = SystemClock.uptimeMillis();
|
mLastBindTime = SystemClock.uptimeMillis();
|
||||||
|
|||||||
Reference in New Issue
Block a user