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

Commit 18e09456 authored by Joanne Chung's avatar Joanne Chung
Browse files

Fix TextClassificationTest#testToBuilder

The PendingIntent checking was enforced in ag/14164166(cfd031a9), we
should add mutability flag in the test.

Bug: 185534778
Test: atest android.view.textclassifier.TextClassificationTest
Change-Id: I551b29a7b4f7083469ee11ba5fa0d3069abc9bc1
parent d055f6d8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -244,7 +244,8 @@ public class TextClassificationTest {
                        PendingIntent.getActivity(
                                context, 0, new Intent("action1"), FLAG_IMMUTABLE)))
                .addAction(new RemoteAction(icon1, "title2", "desc2",
                          PendingIntent.getActivity(context, 0, new Intent("action2"), 0)))
                        PendingIntent.getActivity(context, 0, new Intent("action2"),
                                FLAG_IMMUTABLE)))
                .setEntityType(TextClassifier.TYPE_EMAIL, 0.5f)
                .setEntityType(TextClassifier.TYPE_PHONE, 0.4f)
                .build();