示例#1
0
 void f()
 {
     if (J.b)
     {
         Log.v("LoaderManager", (new StringBuilder()).append("  Destroying: ").append(this).toString());
     }
     l = true;
     boolean flag = f;
     f = false;
     if (c == null || d == null || !e || !flag)
     {
         break MISSING_BLOCK_LABEL_182;
     }
     if (J.b)
     {
         Log.v("LoaderManager", (new StringBuilder()).append("  Reseting: ").append(this).toString());
     }
     String s;
     Exception exception;
     if (o.f != null)
     {
         String s1 = o.f.e.z;
         o.f.e.z = "onLoaderReset";
         s = s1;
     } else
     {
         s = null;
     }
     c.onLoaderReset(d);
     if (o.f != null)
     {
         o.f.e.z = s;
     }
     c = null;
     g = null;
     e = false;
     if (d != null)
     {
         if (m)
         {
             m = false;
             d.unregisterListener(this);
         }
         d.reset();
     }
     if (n != null)
     {
         n.f();
     }
     return;
     exception;
     if (o.f != null)
     {
         o.f.e.z = s;
     }
     throw exception;
 }
示例#2
0
    @Override
    public void resetDataset(int viewIndex) {
      Log.d(LOGTAG, "Resetting dataset: " + viewIndex);

      final LoaderManager lm = getLoaderManager();

      // Release any resources associated with the dataset if
      // it's currently loaded in memory.
      final Loader<?> datasetLoader = lm.getLoader(viewIndex);
      if (datasetLoader != null) {
        datasetLoader.reset();
      }
    }