Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
* add withIdentifier as proposed by @skmlcd in mikepenz#1349
  • Loading branch information
mikepenz authored Jun 20, 2016
1 parent 937c237 commit 85a495d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ Great. Your drawer is now ready to use.

```java
//if you want to update the items at a later time it is recommended to keep it in a variable
PrimaryDrawerItem item1 = new PrimaryDrawerItem().withName(R.string.drawer_item_home);
SecondaryDrawerItem item2 = new SecondaryDrawerItem().withName(R.string.drawer_item_settings);
PrimaryDrawerItem item1 = new PrimaryDrawerItem().withIdentifier(1).withName(R.string.drawer_item_home);
SecondaryDrawerItem item2 = new SecondaryDrawerItem().withIdentifier(2).withName(R.string.drawer_item_settings);

//create the drawer and remember the `Drawer` result object
Drawer result = new DrawerBuilder()
Expand Down

0 comments on commit 85a495d

Please sign in to comment.