Skip to content

Commit

Permalink
Added Settings to Drawer
Browse files Browse the repository at this point in the history
Summary:
Added Settings link to Drawer menu
{F65248007}

Reviewed By: kirwan

Differential Revision: D4339250

fbshipit-source-id: 253f0bd7e223618c474a5cd99a336692a4a1ae9f
  • Loading branch information
massimocarli authored and facebook-github-bot committed Dec 16, 2016
1 parent 5e4026a commit 25ccd4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ private void handleNavigationItemClick(int itemId) {
case R.id.nav_imagepipeline_prefetch:
fragment = new ImagePipelinePrefetchFragment();
break;
// Settings
case R.id.nav_action_settings:
fragment = new SettingsFragment();
break;
default:
throw new IllegalArgumentException("No example with this id!");
}
Expand Down
4 changes: 4 additions & 0 deletions samples/showcase/src/main/res/menu/activity_main_drawer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@
</group>
</menu>
</item>
<item
android:id="@+id/nav_action_settings"
android:title="@string/action_settings"
/>
</menu>

0 comments on commit 25ccd4b

Please sign in to comment.