Exemplo n.º 1
0
 @Override
 protected void loadData() {
   mListFragment.showLoadingSpinner();
   mZabbixDataService.loadScreens(this);
   mDetailsFragment.showProgressBar();
   mDetailsFragment.loadGraphs();
 }
Exemplo n.º 2
0
 @Override
 public void onBackPressed() {
   if (mFragmentContainer != null && mDetailsFragment.isVisible()) {
     showListFragment();
   } else {
     finish();
   }
 }
Exemplo n.º 3
0
 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
   switch (item.getItemId()) {
     case android.R.id.home:
       if (mFragmentContainer != null && mDetailsFragment.isVisible()) {
         showListFragment();
         return true;
       }
       break;
   }
   return super.onOptionsItemSelected(item);
 }
Exemplo n.º 4
0
 @Override
 public void onScreenSelected(Screen screen) {
   //		mToolbar.setSubtitle(screen.getName());
   mDetailsFragment.setScreen(screen);
   showDetailsFragment();
 }