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

Commit 63da86fe authored by Tim Yu's avatar Tim Yu
Browse files

Fix failing Autofill CTS related to PCC.

Cause: missing flag in pcc enable query that makes tests think PCC is
enabled even when it's not.

Fixes: 282996294
Test: android.autofillservice.cts.dialog.LoginActivityTest
Change-Id: I337ad89e5ee782341049c40dc77a9e38f74f6d2c
parent 3502d6ba
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -349,7 +349,8 @@ public final class AutofillManagerServiceShellCommand extends ShellCommand {
    private int isFieldDetectionServiceEnabled(PrintWriter pw) {
        final int userId = getNextIntArgRequired();
        String name = mService.getFieldDetectionServiceName(userId);
        boolean enabled = !TextUtils.isEmpty(name);
        boolean pccFlagEnabled = mService.isPccClassificationFlagEnabled();
        boolean enabled = (!TextUtils.isEmpty(name)) && pccFlagEnabled;
        pw.println(enabled);
        return 0;
    }