Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e299f3b authored by Wilson Wu's avatar Wilson Wu
Browse files

Align PendingIntent changes for multi-client IMMS

Based on go/immutable-pendingintents. We need to specify
either FLAG_MUTABLE or FLAG_IMMUTABLE when creating a
PendingIntent.

Fix: 174187748
Test: N/A
Change-Id: Ia31aa7da46578176b1ae406f690544391fbac680
parent f48a5e3d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -911,7 +911,8 @@ public final class MultiClientInputMethodManagerService {
                                    com.android.internal.R.string.input_method_binding_label)
                            .putExtra(Intent.EXTRA_CLIENT_INTENT, PendingIntent.getActivity(
                                    context, 0,
                                    new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS), 0));
                                    new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS),
                                    PendingIntent.FLAG_MUTABLE));

            // Note: Instead of re-dispatching callback from the main thread to the worker thread
            // where OnWorkerThreadCallback is running, we pass the Handler object here so that