File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
espresso/core/java/androidx/test/espresso/base Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 27
27
import androidx .test .espresso .UiController ;
28
28
import java .util .Arrays ;
29
29
import java .util .List ;
30
+ import java .util .Objects ;
30
31
31
32
/** Helper methods to synchronize configuration changes with onView actions. */
32
33
final class ConfigurationSynchronizationUtils {
@@ -52,7 +53,8 @@ public static void waitForConfigurationChangesOnActivity(
52
53
}
53
54
// If the application is running activities in different processes, activities that aren't
54
55
// on the main process may have a different orientation
55
- if (Build .VERSION .SDK_INT >= 28 && !currentActivity .getApplicationInfo ().processName .equals (Application .getProcessName ())) {
56
+ if (Build .VERSION .SDK_INT >= 28 && !Objects .equals (
57
+ currentActivity .getApplicationInfo ().processName , Application .getProcessName ())) {
56
58
return ;
57
59
}
58
60
You can’t perform that action at this time.
0 commit comments