Commit 759451fc authored by Jun's avatar Jun
Browse files

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
parent 57688e15
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment