Пример #1
0
 void a()
 {
     if (i && j)
     {
         h = true;
     } else
     if (!h)
     {
         h = true;
         if (J.b)
         {
             Log.v("LoaderManager", (new StringBuilder()).append("  Starting: ").append(this).toString());
         }
         if (d == null && c != null)
         {
             d = c.onCreateLoader(a, b);
         }
         if (d != null)
         {
             if (d.getClass().isMemberClass() && !Modifier.isStatic(d.getClass().getModifiers()))
             {
                 throw new IllegalArgumentException((new StringBuilder()).append("Object returned from onCreateLoader must not be a non-static inner member class: ").append(d).toString());
             }
             if (!m)
             {
                 d.registerListener(a, this);
                 m = true;
             }
             d.startLoading();
             return;
         }
     }
 }
Пример #2
0
 void start()
 {
   if ((this.mRetaining) && (this.mRetainingStarted))
   {
     this.mStarted = true;
     return;
   }
   if (this.mStarted)
     return;
   this.mStarted = true;
   if (LoaderManagerImpl.DEBUG)
   {
     String str1 = "  Starting: " + this;
     int i = Log.v("LoaderManager", str1);
   }
   if ((this.mLoader == null) && (this.mCallbacks != null))
   {
     LoaderManager.LoaderCallbacks localLoaderCallbacks = this.mCallbacks;
     int j = this.mId;
     Bundle localBundle = this.mArgs;
     Loader localLoader1 = localLoaderCallbacks.onCreateLoader(j, localBundle);
     this.mLoader = localLoader1;
   }
   if (this.mLoader == null)
     return;
   if ((this.mLoader.getClass().isMemberClass()) && (!Modifier.isStatic(this.mLoader.getClass().getModifiers())))
   {
     StringBuilder localStringBuilder = new StringBuilder().append("Object returned from onCreateLoader must not be a non-static inner member class: ");
     Loader localLoader2 = this.mLoader;
     String str2 = localLoader2;
     throw new IllegalArgumentException(str2);
   }
   if (!this.mListenerRegistered)
   {
     Loader localLoader3 = this.mLoader;
     int k = this.mId;
     localLoader3.registerListener(k, this);
     this.mListenerRegistered = true;
   }
   this.mLoader.startLoading();
 }