From 29c15361f87b0f16162c7ea1755bbb382fb0f447 Mon Sep 17 00:00:00 2001 From: Aurimas Liutikas Date: Fri, 3 Jun 2016 13:14:38 -0700 Subject: [PATCH] Fix code example in testing-support-library. Note: mDevice is a variable, there is additional brackets. Bug: https://code.google.com/p/android/issues/detail?id=206043 Change-Id: I8e88a6144f1ede1d45262ff034159de524c24b70 (cherry picked from commit 6b1853008eac7f64634d7a632869fc6248053d18) --- docs/html/topic/libraries/testing-support-library/index.jd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/html/topic/libraries/testing-support-library/index.jd b/docs/html/topic/libraries/testing-support-library/index.jd index ccbbe74a1a9dc..df0617c149b93 100644 --- a/docs/html/topic/libraries/testing-support-library/index.jd +++ b/docs/html/topic/libraries/testing-support-library/index.jd @@ -523,7 +523,7 @@ onView(withId(R.id.changeTextBt)).perform(click()); mDevice = UiDevice.getInstance(getInstrumentation()); // Perform a short press on the HOME button -mDevice().pressHome(); +mDevice.pressHome(); // Bring up the default launcher by searching for // a UI component that matches the content-description for the launcher button