@Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   menu.add(0, MENU_SAVE, 0, R.string.vpn_menu_done).setIcon(android.R.drawable.ic_menu_save);
   menu.add(
           0, MENU_CANCEL, 0, mAddingProfile ? R.string.vpn_menu_cancel : R.string.vpn_menu_revert)
       .setIcon(android.R.drawable.ic_menu_close_clear_cancel);
   mProfileEditor.onCreateOptionsMenu(menu, MENU_CANCEL);
   return true;
 }
Example #2
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   addMenu(menu);
   return true;
 }
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   getMenuInflater().inflate(R.menu.gerneral_help_menu, menu);
   return true;
 }