Commit ffeb0da7 authored by Vladislav Kaznacheev's avatar Vladislav Kaznacheev
Browse files

DO NOT MERGE: Fix android.widget.cts.ToolbarWithMarginsTest

@UiThreadTest annotation does not seem to have any effect, and
CalledFromWrongThreadException is thrown. This happens regardless
of the platform version (checked on NYC-MR1, AOSP master and internal
master). This does not happen with newer versions of CTS.

Using runOnUiThread and waitForIdleSync seems to solve the problem.

Bug: 72118075
Test: android.widget.cts.ToolbarWithMarginsTest
Change-Id: I100a841e88027851d7b6da31d2021c7dddcd05e6
parent 099f2527
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment