Roll NDK to pick std::deque patch.
[android_tools.git] / sdk / tools / templates / activities / NavigationDrawerActivity / root / src / app_package / include_options_menu.java.ftl
blob8166367078af4e9c3e626dda44fa464241dac8f3
2     @Override
3     public boolean onCreateOptionsMenu(Menu menu) {
4         if (!mNavigationDrawerFragment.isDrawerOpen()) {
5             // Only show items in the action bar relevant to this screen
6             // if the drawer is not showing. Otherwise, let the drawer
7             // decide what to show in the action bar.
8             getMenuInflater().inflate(R.menu.${menuName}, menu);
9             restoreActionBar();
10             return true;
11         }
12         return super.onCreateOptionsMenu(menu);
13     }
15     @Override
16     public boolean onOptionsItemSelected(MenuItem item) {
17         // Handle action bar item clicks here. The action bar will
18         // automatically handle clicks on the Home/Up button, so long
19         // as you specify a parent activity in AndroidManifest.xml.
20         int id = item.getItemId();
21         if (id == R.id.action_settings) {
22             return true;
23         }
24         return super.onOptionsItemSelected(item);
25     }