예제 #1
0
 private void a(com.estrongs.fs.b.aj paramaj, int paramInt, String paramString)
 {
   boolean bool;
   if (c != null)
   {
     if (!aq) {
       aq = d.a(b.getPath(), c, this);
     }
     if (((am.aB(v)) && (com.estrongs.fs.a.a.c(v).size() == 3)) || ("pcsres://".equals(v)) || (v.startsWith("usb://"))) {
       u();
     }
     c(true);
     bool = false;
     if (ai) {
       ai = false;
     }
     if (H != null) {
       H.a(this, bool);
     }
     if ((am.bb(v)) && (a.g(v))) {
       if ((am.K(v)) && (a.h(v).equalsIgnoreCase(am.a(v))))
       {
         if (!bd.m()) {
           break label505;
         }
         new Thread(new bn(this)).start();
       }
     }
   }
   for (;;)
   {
     a.b(paramString);
     al = null;
     AppFolderInfoManager.d().a(v, A);
     Object localObject;
     do
     {
       return;
       aq = false;
       if (paramInt == 5)
       {
         if (getTaskResulta != 1)
         {
           j();
           bool = false;
           break;
         }
         u();
         bool = false;
         break;
       }
       localObject = paramaj.getTaskResult();
     } while (a == 1);
     if (bd.a("ALL_LOADED", b))
     {
       u();
       b(C);
       label328:
       paramaj = b.getPath();
       localObject = (Parcelable)F.get(paramaj);
       if (paramaj.equals(v))
       {
         if ((localObject == null) || (al != null)) {
           break label494;
         }
         g.onRestoreInstanceState((Parcelable)localObject);
       }
     }
     for (;;)
     {
       if ((al != null) && (!am.aO(al)) && (!am.aG(paramaj)))
       {
         paramInt = l(al);
         if (paramInt >= 0)
         {
           g.setSelected(true);
           g.setSelection(paramInt);
           g.setFocusable(true);
           g.post(new bm(this, paramInt));
         }
       }
       bool = true;
       break;
       if (!(b instanceof List)) {
         break label328;
       }
       a(paramaj, (List)b);
       break label328;
       label494:
       g.setSelection(0);
     }
     label505:
     com.estrongs.fs.impl.adb.c.i(v);
   }
 }
 public void a(ci paramci, int paramInt)
 {
   Object localObject2 = (do)paramci;
   Object localObject1 = (h)e.e(paramInt);
   if (localObject1 == null) {
     return;
   }
   if ((localObject1 instanceof com.estrongs.fs.impl.s.a)) {
     localObject1 = ((com.estrongs.fs.impl.s.a)localObject1).a();
   }
   for (;;)
   {
     ((DragGrid)i).setFileObject((h)localObject1);
     if (z.ab) {
       k.setEllipsize(TextUtils.TruncateAt.END);
     }
     int j;
     label166:
     label207:
     Object localObject3;
     if (i.a())
     {
       k.setText("‏" + ((h)localObject1).getName());
       k.setTextColor(e.af);
       if ((localObject1 instanceof com.estrongs.fs.impl.b.d))
       {
         j = ((com.estrongs.fs.impl.b.d)localObject1).i();
         if (3 != j) {
           break label829;
         }
         k.setTextColor(cr.f(e).c(2131558457));
       }
       j.setTag(localObject1);
       j = f.g((h)localObject1);
       if (!f.b((h)localObject1)) {
         break label857;
       }
       e.b(((h)localObject1).getAbsolutePath(), j, (h)localObject1, j, true);
       if ((!z.ap) && (!(localObject1 instanceof b)))
       {
         localObject3 = AppFolderInfoManager.d().a(e.ag, (h)localObject1, f);
         if (localObject3 != null) {
           ((ESImageView)j).a((Drawable)localObject3, 0.5F);
         }
       }
       if ((localObject1 instanceof com.estrongs.fs.impl.c.d))
       {
         localObject3 = AppFolderInfoManager.d().a(e.ag, (h)b.get(0), f);
         if (localObject3 != null) {
           ((ESImageView)j).a((Drawable)localObject3, 0.5F);
         }
       }
       if (AppFolderInfoManager.d().e((h)localObject1))
       {
         localObject3 = AppFolderInfoManager.d().d((h)localObject1);
         localObject3 = AppFolderInfoManager.d().a(e.ag, (h)localObject3, f);
         if (localObject3 != null) {
           ((ESImageView)j).a((Drawable)localObject3, 0.5F);
         }
       }
       if (a != null)
       {
         g = "";
         if (!cr.g(e)) {
           break label997;
         }
         localObject3 = ((h)localObject1).getFileType();
         if ((!w.i.equals(localObject3)) && (!w.j.equals(localObject3))) {
           break label870;
         }
         g = e.j(2131231083);
         label458:
         h = "";
         if (!cr.g(e)) {
           break label1194;
         }
         label475:
         i = "";
         if (!cr.g(e)) {
           break label1259;
         }
         if (!i.a()) {
           break label1381;
         }
         a.a(i, h, g);
       }
       label518:
       localObject1 = l;
       if (n != null)
       {
         if ((!e.q) && (!(e instanceof fv))) {
           break label1404;
         }
         n.setVisibility(8);
       }
       label560:
       if (!e.q) {
         break label1442;
       }
       ((CheckBox)localObject1).setVisibility(0);
       if (!e.h(paramInt)) {
         break label1415;
       }
       ((CheckBox)localObject1).setChecked(true);
       i.setBackgroundDrawable(at.a(e.ag).a(2130838143));
       label616:
       if ((!z.v) && (e.q))
       {
         localObject2 = new Rect();
         i.getHitRect((Rect)localObject2);
         if (!e.h(paramInt)) {
           break label1626;
         }
         if (paramInt != 0) {
           break label1452;
         }
         if (!((Rect)localObject2).isEmpty())
         {
           localObject1 = (com.estrongs.android.ui.drag.j)e.s.get(e.g(paramInt));
           if (localObject1 != null) {
             break label1664;
           }
           localObject1 = new com.estrongs.android.ui.drag.j();
           ((com.estrongs.android.ui.drag.j)localObject1).a(paramInt);
           ((com.estrongs.android.ui.drag.j)localObject1).a((DragGrid)i);
           e.s.put(e.g(paramInt), localObject1);
         }
       }
     }
     label829:
     label857:
     label870:
     label997:
     label1194:
     label1259:
     label1381:
     label1404:
     label1415:
     label1442:
     label1452:
     label1626:
     label1664:
     for (;;)
     {
       localObject3 = new com.estrongs.android.ui.drag.j();
       ((com.estrongs.android.ui.drag.j)localObject3).a(paramInt);
       ((com.estrongs.android.ui.drag.j)localObject3).a((DragGrid)i);
       ((com.estrongs.android.ui.drag.j)localObject1).a((Rect)localObject2, (com.estrongs.android.ui.drag.j)localObject3, i);
       for (;;)
       {
         e.a(paramci, paramInt);
         e.b(paramci, paramInt);
         return;
         k.setText(((h)localObject1).getName());
         break;
         if (2 != j) {
           break label166;
         }
         k.setTextColor(cr.f(e).c(2131558458));
         break label166;
         e.a(j, j, (h)localObject1);
         break label207;
         if ((w.k.equals(localObject3)) || (w.l.equals(localObject3)))
         {
           g = e.j(2131231660);
           break label458;
         }
         if ((w.m.equals(localObject3)) || (w.n.equals(localObject3)))
         {
           g = e.j(2131231090);
           break label458;
         }
         if (ap.x(((h)localObject1).getAbsolutePath()))
         {
           g = "flashair://flashair/".replaceFirst("flashair://", "http://");
           break label458;
         }
         g = ap.a(((h)localObject1).getPath());
         break label458;
         if (((h)localObject1).getFileType().a())
         {
           if (((h)localObject1).getExtra("child_count") != null)
           {
             g = (((h)localObject1).getExtra("child_count") + " " + b);
             break label458;
           }
           g = e.j(2131231133);
           break label458;
         }
         if ((localObject1 instanceof com.estrongs.fs.impl.b.d))
         {
           g = ((com.estrongs.fs.impl.b.d)localObject1).e();
           break label458;
         }
         if ((((h)localObject1).length() < 1L) && ((localObject1 instanceof com.estrongs.fs.impl.pcs.a)))
         {
           g = e.j(2131232179);
           break label458;
         }
         if (((h)localObject1).length() == -1L)
         {
           g = e.ag.getString(2131232212);
           break label458;
         }
         g = com.estrongs.fs.util.j.c(((h)localObject1).length());
         break label458;
         if ((localObject1 instanceof com.estrongs.fs.impl.b.d))
         {
           h = com.estrongs.fs.util.j.c(((h)localObject1).length());
           break label475;
         }
         if ((localObject1 instanceof b))
         {
           if ((localObject1 instanceof com.estrongs.fs.impl.c.d)) {
             break label475;
           }
           h = com.estrongs.fs.util.j.a((h)localObject1);
           break label475;
         }
         h = com.estrongs.fs.util.j.a((h)localObject1);
         break label475;
         if ((localObject1 instanceof b))
         {
           if (((h)localObject1).lastModified() <= 0L) {}
           for (localObject1 = e.ag.getString(2131232212);; localObject1 = cr.N.format(Long.valueOf(((h)localObject1).lastModified())))
           {
             i = ((String)localObject1);
             break;
           }
         }
         if (((h)localObject1).lastModified() <= 0L) {}
         for (localObject1 = e.ag.getString(2131232212);; localObject1 = cr.N.format(Long.valueOf(((h)localObject1).lastModified())))
         {
           i = ((String)localObject1);
           break;
         }
         a.a(g, h, i);
         break label518;
         n.setVisibility(0);
         break label560;
         ((CheckBox)localObject1).setChecked(false);
         i.setFocusable(true);
         i.setBackgroundResource(2130837674);
         break label616;
         ((CheckBox)localObject1).setVisibility(8);
         break label616;
         localObject1 = (com.estrongs.android.ui.drag.j)e.s.get(e.g(paramInt));
         if (localObject1 == null)
         {
           localObject1 = new com.estrongs.android.ui.drag.j();
           ((com.estrongs.android.ui.drag.j)localObject1).a(paramInt);
           ((com.estrongs.android.ui.drag.j)localObject1).a((DragGrid)i);
           localObject2 = ((com.estrongs.android.ui.drag.j)localObject1).b().getBackground();
           ((com.estrongs.android.ui.drag.j)localObject1).b().setBackgroundResource(2130837692);
           ((com.estrongs.android.ui.drag.j)localObject1).b().setBackgroundDrawable((Drawable)localObject2);
           e.s.put(e.g(paramInt), localObject1);
         }
         else
         {
           ((com.estrongs.android.ui.drag.j)localObject1).a(paramInt);
           ((com.estrongs.android.ui.drag.j)localObject1).a((DragGrid)i);
           if (((com.estrongs.android.ui.drag.j)localObject1).c() == null)
           {
             localObject2 = ((com.estrongs.android.ui.drag.j)localObject1).b().getBackground();
             ((com.estrongs.android.ui.drag.j)localObject1).b().setBackgroundResource(2130837692);
             ((com.estrongs.android.ui.drag.j)localObject1).b().setBackgroundDrawable((Drawable)localObject2);
             continue;
             localObject1 = (com.estrongs.android.ui.drag.j)e.s.remove(e.e(paramInt));
             if (localObject1 != null) {
               ((com.estrongs.android.ui.drag.j)localObject1).e();
             }
           }
         }
       }
     }
   }
 }