Exemplo n.º 1
0
 @Override
 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
   super.onCreateOptionsMenu(menu, inflater);
   /// M: Operator Feature Create HistoryPageOptionMenu. @{
   mBrowserSmallFeatureEx = Extensions.getSmallFeaturePlugin(getActivity());
   if (mBrowserSmallFeatureEx.shouldCreateHistoryPageOptionMenu(menu, inflater)) {
     inflater.inflate(R.menu.history, menu);
   }
   /// @}
 }
Exemplo n.º 2
0
 @Override
 public void onPrepareOptionsMenu(Menu menu) {
   super.onPrepareOptionsMenu(menu);
   /// M: Operator Feature set the history menu item. @{
   mBrowserSmallFeatureEx = Extensions.getSmallFeaturePlugin(getActivity());
   if (mBrowserSmallFeatureEx.shouldConfigHistoryPageMenuItem(
       menu, mAdapter == null ? true : false, mAdapter.isEmpty())) {
     menu.findItem(R.id.clear_history_menu_id).setEnabled(true);
   }
   /// @}
 }