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

Commit e22e0674 authored by vadimt's avatar vadimt Committed by android-build-merger
Browse files

Improving "Add automatically" recognition

am: 34828b19

Change-Id: I413cc1a05bac3e3ad6ce9eded75fe1d2ca32cd2b
parents beb70a5a 34828b19
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;