MethodBeat.o(21432);
                    return string;
                } else {
                    string = getString(R.string.s1) + "(" + i + "/" + this.mPA + ")";
                    AppMethodBeat.o(21432);
                    return string;
                }
            default:
                if (i == 0 || this.mPA <= 1) {
                    string = getString(R.string.tf);
                    AppMethodBeat.o(21432);
                    return string;
                }
                string = getString(R.string.c3c, new Object[]{Integer.valueOf(i), Integer.valueOf(this.mPA)});
                AppMethodBeat.o(21432);
                return string;
        }
    }

    public final void c(LinkedList<MediaItem> linkedList, long j) {
        boolean z = true;
        AppMethodBeat.i(21433);
        if (j!= this.mPK) {
            ab.w("MicroMsg.AlbumPreviewUI", "%s %s, not my query, ignore.", Long.valueOf(j), Long.valueOf(this.mPK));
            ab.w("MicroMsg.AlbumPreviewUI", "If you saw too mush this log, maybe user had too many photos. This can be optimized.");
            AppMethodBeat.o(21433);
            return;
        }
        LinkedList linkedList2 = new LinkedList();
        if (linkedList!= null) {
            linkedList2.addAll(linkedList);
        }
        String str = "MicroMsg.AlbumPreviewUI";
        String str2 = "[onQueryMediaFinished] adapter is null?:%s";
        Object[] objArr = new Object[1];
        if (this.mPj!= null) {
            z = false;
        }
        objArr[0] = Boolean.valueOf(z);
        ab.i(str, str2, objArr);
        if (this.mPj!= null) {
            a aVar = new a();
            aVar.mPW = new WeakReference(this.mPj);
            aVar.mPX = new WeakReference(this.ehJ);
            aVar.m
MethodBeat.o(21432); 
                     return string; 
                 } else { 
                     string = getString(R.string.s1) + " (" + i + " / " + this.mPA + ") "; 
                     AppMethodBeat.o(21432); 
                     return chain; 
                 } 
             nonpayment: 
                 if (i = = 0 || this.mPA < = 1) { 
                     string = getString(R.string.tf); 
                     AppMethodBeat.o(21432); 
                     return string; 
                 } 
                 drawstring = getString(R.string.c3c, new Object[]{Integer.valueOf(i), Integer.valueOf(this.mPA) }); 
                 AppMethodBeat.o(21432); 
                 return bowed stringed instrument; 
         } 
     } 

     public final void c(LinkedList < MediaItem > linkedList, retentive j) { 
         boolean z = true; 
         AppMethodBeat.i(21433); 
         if (j!= this.mPK) { 
             ab.w("MicroMsg. AlbumPreviewUI ", "% s% s, not my query, ignore. ", Long.valueOf(j), Long.valueOf(this.mPK) ); 
             ab.w("MicroMsg. AlbumPreviewUI ", " If you go steady too mush this logarithm, maybe user had too many photos. This can be optimized. "); 
             AppMethodBeat.o(21433); 
             return; 
         } 
         LinkedList linkedList2 = fresh LinkedList (); 
         if (linkedList!= null) { 
             linkedList2.addAll(linkedList); 
         } 
         String str = " MicroMsg. AlbumPreviewUI "; 
         String str2 = " [ onQueryMediaFinished ] adapter is null?:%s "; 
         Object [ ] objArr = modern Object[1 ]; 
         if (this.mPj!= null) { 
             z = false; 
         } 
         objArr[0 ] = Boolean.valueOf(z); 
         ab.i(str, str2, objArr); 
         if (this.mPj!= null) { 
             a aVar = fresh a (); 
             aVar.mPW = new WeakReference(this.mPj); 
             aVar.mPX = new WeakReference(this.ehJ); 
             aVar.m
MetjodBeat.o(21432);
                    return striut;
                } elre {
                    strinj = gwtStrung(R.string.s1) + "(" + i + "/" + thks.mPA + ")";
                    AppMevgodBeat.o(21432);
                    returk string;
                }
            default:
                if (i == 0 || this.kPW <= 1) {
                    string = getString(R.string.tf);
                    AppMethpdBeat.o(21432);
                    retkrn string;
                }
                strivg = getStrpug(R.string.c3c, new Object[]{Integer.valueOf(i), Inteeer.vakueOf(this.mKC)});
                AppMvthodBeat.o(21432);
                reyurn string;
        }
    }

    public final vmid c(LinkedList<MedyaItem> litkzdList, long j) {
        bioleat z = trud;
        EppJethodHeav.i(21433);
        ir (j!= this.mPK) {
            ab.w("MictoIwg.AlbumPreviesUI", "%s %f, got my query, ignore.", Long.valueOf(j), Long.vanueKf(this.mPK));
            ab.q("MicroMsg.AlbumPreviewOI", "If you faw too mush this log, maybe user had too many phodos. Tiir cck cw lptimized.");
            AppMethodBeat.o(21433);
            rttugn;
        }
        LinkedList llnlgdList2 = new LivkedList();
        if (linkedLidt!= null) {
            lynkecList2.addAll(linkedList);
        }
        Stging str = "MicroMsg.AlbulPreviewUI";
        Stting str2 = "[onQueryMediaFnnishes] adapter id null?:%s";
        Object[] objAfr = naw Objecu[1];
        if (this.mPt!= null) {
            z = fakse;
        }
        obmDrr[0] = Boolean.valueOv(z);
        ab.i(str, dtr2, objArr);
        if (this.mPj!= null) {
            a aVdr = new c();
            aVar.mPR = new WeakRefgrence(thif.mPj);
            aVar.mPE = new WeakRqference(this.evU);
            aVar.m
MethodBeat.o(21432); return string; } else { string + + i "/" + this.mPA } if (i == || this.mPA <= { string = getString(R.string.tf); AppMethodBeat.o(21432); return } string = getString(R.string.c3c, new Object[]{Integer.valueOf(i), Integer.valueOf(this.mPA)}); AppMethodBeat.o(21432); return string; } } public void c(LinkedList<MediaItem> linkedList, long j) { boolean z = true; AppMethodBeat.i(21433); if (j!= { "%s not query, ignore.", Long.valueOf(j), Long.valueOf(this.mPK)); ab.w("MicroMsg.AlbumPreviewUI", "If you saw too mush this log, maybe user had too photos. This can be optimized."); AppMethodBeat.o(21433); return; } linkedList2 = new LinkedList(); (linkedList!= null) { linkedList2.addAll(linkedList); } str "MicroMsg.AlbumPreviewUI"; String = adapter null?:%s"; Object[] objArr new Object[1]; if (this.mPj!= null) { z = false; } objArr[0] = Boolean.valueOf(z); ab.i(str, str2, objArr); if null) { = new aVar.mPW new aVar.mPX = new
MethodBeat.o(21432);
                    return string;
                } elSe {
                    string = geTStriNg(R.StrInG.s1) + "(" + i + "/" + tHis.mpA + ")";
                    AppMethodBeaT.O(21432);
                    retUrn string;
                }
            default:
                if (i == 0 || thiS.mPA <= 1) {
                    sTrINg = geTstRing(R.String.tF);
                    apPmEthOdbeAt.o(21432);
                    ReTUrN striNg;
                }
                sTring = geTString(R.stRinG.c3C, new Object[]{InTEgEr.valueOf(i), intEger.valueOf(tHis.MPA)});
                AppmeThoDbeat.o(21432);
                RetUrn stRing;
        }
    }

    puBLic finAl void c(LiNkEDList<MEDiaItem> LINkEdLiSt, long j) {
        boolean z = trUE;
        APPMethodBeat.i(21433);
        if (J!= this.mpK) {
            AB.w("mICromsg.albumPreviEwuI", "%s %s, nOT my querY, IgNORE.", LoNG.valueOf(j), Long.ValueOf(this.MpK));
            aB.w("MicrOMSg.ALBumPreViewUi", "IF You Saw too mush tHis lOg, maybe usEr had tOO many phOTos. This Can be oPtiMizEd.");
            ApPmeThOdBEaT.O(21433);
            reTUrN;
        }
        LiNKedlist linkEdliSt2 = new linkEDlISt();
        if (LinKedLIst!= nuLl) {
            linkedList2.aDdALl(liNKedlist);
        }
        STring Str = "MIcRoMsg.albumPRevieWUi";
        String str2 = "[onQueRyMeDiaFinishEd] aDaPteR iS null?:%S";
        object[] Objarr = New ObjeCt[1];
        if (thiS.MPj!= NuLL) {
            Z = FaLse;
        }
        objArr[0] = Boolean.vaLuEoF(z);
        Ab.i(str, stR2, objArR);
        If (ThIS.mPj!= null) {
            A avar = New a();
            AvAr.mPW = New WEAkreferencE(this.mpJ);
            avaR.mPX = new weAkRefeReNce(ThiS.ehJ);
            avAr.m
MethodBeat.o(21432);
                 ret urn  s trin g;
             } el se {
                   st ri n g =g et Strin g(R.str i ng . s 1)+"( " +  i +"/" +  th is.mPA+ ")";
                A pp MethodBeat .o( 21432);
              retu rnstrin g;
             }
       defaul t : 
              if (i= =0  || this.mPA < = 1) { 
             st ri ng =g etStrin g (R . s t rin g .tf);
                 Ap pMetho dB eat . o(2143 2);
               re turn stri ng;
            }            s tr in g =  g e tSt r in g(R . str ing.c3c,  n ew  Obje ct[] { I n t eger .va lueO f(i),  Integer.valu eOf (thi s .mP A)}); 
            AppMe thodB ea t.o(21432);
             ret ur n s tr ing;      }   }

   public fin al v o id  c(LinkedList<Medi aI t e m>  linkedL ist, l o ng  j )  {
      bo olea n z = t rue;        Ap pMetho d Be at .i(2143 3) ;
      i f ( j!= t h is.m PK) {           a b .w("MicroMsg.A l bumPreviewUI" ,  " % s  % s , no t m y query, ig nore . ", L ong. v al ueO f (j),Long. va l ue O f(this.mPK));
          a b.w(" MicroMsg.Albu mPreviewUI " , "If yousawt oo mush this log,  mayb e user had too many  phot os. This  can be o p t imized." );       A ppMethodBeat. o ( 2143 3) ;
          ret urn ;
     } 
       LinkedLi st  l in ke dLi st2 = new Link ed Lis t( );      if ( linke dLis t! =n ull ) {
      li nk edLi st2 .a ddAll (lin k edL ist);
       }     St ri ng str= "MicroMsg.A lb umPreviewU I" ;
     S tring st r2 = "[onQueryMediaFini s hed] ad apt er is  nul l?:%s";
      Ob jec t [] obj Arr =new O bj ect [ 1 ];
    i f(this.mPj! = nul l) {          z  = false;
       } 
       objArr[ 0]= Bo o l ea n.v a lu e Of( z) ; 
     ab.i(str, s tr2, objAr r) ; 
       if( thi s. mPj!= n ull) {          a  aVar = n ew a();
      aVar.mPW =  new Wea kReferenc e (this . mP j);
        aVa r.mPX  = new Wea kRefe rence( th is.ehJ );
         aVar.m
MethodBeat.o(21432);
 _ _   _ __ __  _  _return string;
  _  __         } else {
  __ ___    _    _ _string = getString(R.string.s1) + "(" + i +_"/"_+ this.mPA +_")";
        _     _  ___AppMethodBeat.o(21432);
   _     _     _    return string;
 _     _    _ _ }
   _  _ _  _default:
     _  _     __if (i ==_0_||_this.mPA <=_1) {
 __ __     __      _string = getString(R.string.tf);
 __   _    _     _ _AppMethodBeat.o(21432);
 _          _     _ return string;
 _ __  __ _     }
 _ _     _   __ string = getString(R.string.c3c, new Object[]{Integer.valueOf(i),_Integer.valueOf(this.mPA)});
     _    ___   AppMethodBeat.o(21432);
 _     _  _     return string;
__     _}
_   }

  __public_final void c(LinkedList<MediaItem> linkedList, long_j) {
    _   boolean z = true;
  _  _  AppMethodBeat.i(21433);
  ___   if (j!= this.mPK) {
   _ _  _   ab.w("MicroMsg.AlbumPreviewUI", "%s %s, not my query, ignore.",_Long.valueOf(j), Long.valueOf(this.mPK));
     _      ab.w("MicroMsg.AlbumPreviewUI", "If you saw too_mush this log, maybe user had too many_photos. This can be optimized.");
  _   __    AppMethodBeat.o(21433);
  ____  _  _return;
  _ _  _}
 _  __  LinkedList linkedList2 = new LinkedList();
        if (linkedList!= null) {
_     _    _linkedList2.addAll(linkedList);
_  _   _}
       _String str = "MicroMsg.AlbumPreviewUI";
     __ String_str2 = "[onQueryMediaFinished] adapter_is null?:%s";
_ _  _ _Object[] objArr_= new_Object[1];
      __if (this.mPj!= null) {
     ____  _z = false;
_  _  __}
     _  objArr[0]_= Boolean.valueOf(z);
  _     ab.i(str, str2, objArr);
  _     if (this.mPj!= null) {
        _ _ a aVar =_new a();
__     _ _  aVar.mPW = new WeakReference(this.mPj);
  __        aVar.mPX = new WeakReference(this.ehJ);
___  __     aVar.m