Ejemplo n.º 1
0
 @Override
 public ConfigurationChangeStorage saveConfiguration() {
   ConfigurationChangeStorage cStore = new ConfigurationChangeStorage();
   cStore.adapters.add(getListAdapter());
   cStore.addScraper(scrape);
   cStore.mode = mode;
   return cStore;
 }
Ejemplo n.º 2
0
 @Override
 public void retainConfiguration(ConfigurationChangeStorage conf) {
   setListAdapter(conf.adapters.get(0));
   BasicScraper retainedScraper = conf.getScraper(0, this);
   if (retainedScraper instanceof ExamsScraper) {
     scrape = (ExamsScraper) retainedScraper;
   }
   mode = conf.mode;
   setSpinner();
 }