Switch DrawerLayout to new listener API.
setDrawerListener is deprecated in favor of the new addDrawerListener. Change-Id: I374cff5ff481f206d5a94835c0c00e719c2f6e25
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user