Replaced combination of calls to Activity.runOnUiThread() and
Instrumentation.waitForIdleSync() with
ActivityInstrumentationTestCase2.runTestOnUiThread().
runTestOnUiThread() blocks until the submitted task has completed, so
there is no need for further synchronization.