Switch DrawerLayout to new listener API.

setDrawerListener is deprecated in favor of the new
addDrawerListener.

Change-Id: I374cff5ff481f206d5a94835c0c00e719c2f6e25
This commit is contained in:
Kirill Grouchnikov
2016-02-09 17:07:03 -08:00
parent ab86053704
commit 8369074daf

View File

@@ -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