commit | 42e7d6fafcde7bfe261dd7d8d75ee53ca0cd6790 | [log] [tgz] |
---|---|---|
author | Aurimas Liutikas <aurimas@google.com> | Wed Sep 28 14:17:32 2016 -0700 |
committer | Aurimas Liutikas <aurimas@google.com> | Thu Sep 29 14:33:29 2016 -0700 |
tree | c9830205ca204dc79e3e9af09214f5abeba12f4e | |
parent | b465ec2a13f48fd8f7d1af409f441e1d91cf91c7 [diff] |
Replace usage of Instrumentation#runOnMainSync with ActivityTestRule#runOnUiThread. ActivityTestRule#runOnUiThread handles exceptions correctly and thus should be used in place of Instrumentation#runOnMainSync. This changes most of these use-cases except for tricky cases. Bug: 31801302 Test: ran support-design:connectedCheck and support-appcompat:connectedCheck Change-Id: I70904aef89e6bbc2a3cff1b3be697258d666e316