Improving "Add automatically" recognition
Bug: 138152531 Change-Id: I204233f06a80d2d17b24dd9622c7a2152b1303a0
This commit is contained in:
parent
44515f42c0
commit
34828b1942
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue