From 8369074daf4603fa483aac75a423e7041adde04e Mon Sep 17 00:00:00 2001 From: Kirill Grouchnikov Date: Tue, 9 Feb 2016 17:07:03 -0800 Subject: [PATCH] Switch DrawerLayout to new listener API. setDrawerListener is deprecated in favor of the new addDrawerListener. Change-Id: I374cff5ff481f206d5a94835c0c00e719c2f6e25 --- .../example/android/supportv7/widget/DrawerLayoutActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/Support7Demos/src/com/example/android/supportv7/widget/DrawerLayoutActivity.java b/samples/Support7Demos/src/com/example/android/supportv7/widget/DrawerLayoutActivity.java index 785436455..55ad19da0 100644 --- a/samples/Support7Demos/src/com/example/android/supportv7/widget/DrawerLayoutActivity.java +++ b/samples/Support7Demos/src/com/example/android/supportv7/widget/DrawerLayoutActivity.java @@ -141,7 +141,7 @@ public class DrawerLayoutActivity extends AppCompatActivity { } }; - mDrawerLayout.setDrawerListener(mDrawerToggle); + mDrawerLayout.addDrawerListener(mDrawerToggle); // Configure the background color fill of the system status bar (on supported platform // versions) and the toolbar itself. We're using the same color, and android:statusBar