From fdff76b5dd5152248a5644f1fac3ac130dcdb1ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Leboulanger?= Date: Mon, 17 Oct 2016 10:18:23 +0200 Subject: [PATCH] Update opening-drawer-from-espresso.md --- FAQ/opening-drawer-from-espresso.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FAQ/opening-drawer-from-espresso.md b/FAQ/opening-drawer-from-espresso.md index 4c2b06d82..56be2d54c 100644 --- a/FAQ/opening-drawer-from-espresso.md +++ b/FAQ/opening-drawer-from-espresso.md @@ -7,4 +7,4 @@ First, you need a add `espresso-contrib` to your project. It has the needed `Dra Then, you need to open the drawer with his `openDrawer()` method and the drawer layout ID. The generated one is `R.id.material_drawer_layout` -`DrawerActions.open(R.id.material_drawer_layout);` +`onView(withId(R.id.material_drawer_layout)).perform(DrawerActions.open(Gravity.START));`