Move setUiDevice() to getLauncherStrategy()
call setUiDevice() in registerLauncherStrategy() may throw NPE when there is no Nexus device after register the Nexus Launcher Stategy. Move setUiDevice() to the getLauncherStrategy() to avoid the issue. Test: use adb to run AndroidAutoUiTests and observe no NPE bug: 133852848 Change-Id: I5cbf9ebbc4a5d16ce8644b482b4d8c29a772531c
Loading
Please sign in to comment