Beispiel #1
0
 public void downloadListUpdated() {
   for (WeakReference<Fragment> ref : fragList) {
     Fragment f = ref.get();
     if (f instanceof DownloadIndexFragment) {
       if (!f.isDetached()) {
         ((DownloadIndexAdapter) ((DownloadIndexFragment) f).getExpandableListAdapter())
             .notifyDataSetInvalidated();
       }
     }
   }
 }
Beispiel #2
0
 @Override
 public void categorizationFinished(List<IndexItem> filtered, List<IndexItemCategory> cats) {
   for (WeakReference<Fragment> ref : fragList) {
     Fragment f = ref.get();
     if (f instanceof DownloadIndexFragment) {
       if (!f.isDetached()) {
         ((DownloadIndexFragment) f).categorizationFinished(filtered, cats);
       }
     }
   }
 }