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

Commit 34828b19 authored by vadimt's avatar vadimt
Browse files

Improving "Add automatically" recognition

Bug: 138152531
Change-Id: I204233f06a80d2d17b24dd9622c7a2152b1303a0
parent 44515f42
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.launcher3.tapl;

import static java.util.regex.Pattern.CASE_INSENSITIVE;

import androidx.test.uiautomator.By;
import androidx.test.uiautomator.UiObject2;

@@ -23,7 +25,7 @@ import java.util.regex.Pattern;

public class AddToHomeScreenPrompt {
    private static final Pattern ADD_AUTOMATICALLY =
            Pattern.compile("ADD AUTOMATICALLY|Add automatically");
            Pattern.compile("^Add automatically$", CASE_INSENSITIVE);
    private final LauncherInstrumentation mLauncher;
    private final UiObject2 mWidgetCell;