Esempio n. 1
0
 @Override
 protected void loadData() {
   mListFragment.showLoadingSpinner();
   mZabbixDataService.loadScreens(this);
   mDetailsFragment.showProgressBar();
   mDetailsFragment.loadGraphs();
 }
Esempio n. 2
0
 @Override
 public void onBackPressed() {
   if (mFragmentContainer != null && mDetailsFragment.isVisible()) {
     showListFragment();
   } else {
     finish();
   }
 }
Esempio 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);
 }
Esempio n. 4
0
 @Override
 public void onScreenSelected(Screen screen) {
   //		mToolbar.setSubtitle(screen.getName());
   mDetailsFragment.setScreen(screen);
   showDetailsFragment();
 }