Пример #1
0
 {
     if (!((Iterator) (obj)).hasNext())
     {
         break;
     }
     integer = (Integer)((Iterator) (obj)).next();
     obj1 = getLoadersFor(integer.intValue());
     if (obj1 != null)
     {
         obj1 = ((List) (obj1)).iterator();
         do
         {
             j = i;
             if (!((Iterator) (obj1)).hasNext())
             {
                 break;
             }
             resourceloader1 = (ResourceLoader)((Factory)((Iterator) (obj1)).next()).get();
             resourceloader1.setPriority((long)minPriority + (l - (long)k));
             if (AppLog.isLoggable(TAG, 2))
             {
                 AppLog.v(TAG, (new StringBuilder()).append("Adding ").append(resourceloader1).append(" at position ").append(integer).append(" with priority ").append(resourceloader1.getPriority()).toString());
             }
             arraylist.add(resourceloader1);
             if (resourceloader1.getResourceKey() != null)
             {
                 adapterview.add(resourceloader1.getResourceKey());
             }
             j = i + 1;
             i = j;
         } while (j < maxResources);
         k++;
         i = j;
     }
 } while (true);
Пример #2
0
 while (adapterview.hasNext()) 
 {
     ResourceLoader resourceloader = (ResourceLoader)adapterview.next();
     if (AppLog.isLoggable(TAG, 2))
     {
         AppLog.v(TAG, (new StringBuilder()).append("Loading ").append(resourceloader).append(" with priority ").append(resourceloader.getPriority()).toString());
     }
     resourceProvider.execute(resourceloader);
 }