public final void a(cf paramcf, int paramInt, ChattingUI paramChattingUI, ak paramak) { this.gMB = paramChattingUI; ac localac = (ac) paramcf; al localal = be.uz().sw().vj(paramak.getContent()); if ((localal == null) || (localal.aCu() == null) || (localal.aCu().length() <= 0)) { aa.e("MicroMsg.ChattingItemCardTo", "getView : parse possible friend msg failed"); return; } int i = bv.dw(paramak.getContent()); String str1; String str2; int j; if (i != -1) { String str3 = paramak.getContent().substring(0, i).trim(); if ((str3 != null) && (str3.length() > 0)) localac.gKU.setText(w.cu(str3)); str1 = localal.rp(); a(paramChattingUI); if (!au.hX(str1)) break label460; str2 = localal.aCu(); if ((!i.tD(str2)) && (!w.cs(str2))) break label454; j = 1; } while (true) { boolean bool = w.cm(localal.rJ()); TextView localTextView1 = localac.gKU; if ((j != 0) || (bool)) str2 = ""; localTextView1.setText(str2); localac.gKT.setText(2131165760); TextView localTextView2 = localac.cPP; localTextView2.setText( com.tencent.mm.ao.b.e(paramChattingUI, localal.kn(), (int) localac.cPP.getTextSize())); localac.gKV.setVisibility(8); c.a(localac.gKS, localal.aCu()); c.a(localac.cMS, paramChattingUI.gMi.clp); localac.cMS.setVisibility(0); localac.cMS.setTag(new kk(paramChattingUI.gMi.clp)); localac.cMS.setOnClickListener(paramChattingUI.gMi.gNw); localac.cMS.setOnLongClickListener(paramChattingUI.gMi.gNy); localac.gKd.setVisibility(8); localac.gki.setTag(new kk(paramak, paramChattingUI.gJU, paramInt, null, 0, '\000')); localac.gki.setOnClickListener(paramChattingUI.gMi.gNw); localac.gki.setOnLongClickListener(paramChattingUI.gMi.gNy); a( paramInt, localac, paramak, paramChattingUI.gMi.clp, paramChattingUI.gJU, paramChattingUI.gMi.gNw); return; paramak.aCl(); break; label454: j = 0; continue; label460: str2 = str1; j = 0; } }
public final boolean a(MenuItem paramMenuItem, ChattingUI paramChattingUI, ak paramak) { switch (paramMenuItem.getItemId()) { default: return false; case 118: } Intent localIntent = new Intent(paramChattingUI, MsgRetransmitUI.class); localIntent.putExtra( "Retr_Msg_content", paramChattingUI.at(paramak.getContent(), paramak.rO())); localIntent.putExtra("Retr_Msg_Type", 8); localIntent.putExtra("Retr_Msg_Id", paramak.field_msgId); paramChattingUI.startActivity(localIntent); return false; }
private int e(String paramString1, String paramString2, int paramInt) { int i; LinkedList localLinkedList1; LinkedList localLinkedList2; PInt localPInt; if (bm.ac(com.tencent.mm.sdk.platformtools.al.getContext())) { i = 16384; localLinkedList1 = new LinkedList(); localLinkedList2 = new LinkedList(); localPInt = new PInt(); com.tencent.mm.sdk.platformtools.aa.d("MicroMsg.BackupServer", "backupChatMsg start " + paramString1); if ((!paramString1.equals(this.cKh.Hg())) || (this.cKh.Hh() == 0)) break label160; } Cursor localCursor; int k; int n; Object localObject1; label160: for (int j = 1; ; j = 0) { localCursor = d.Gj().sw().vd(paramString1); if (!localCursor.moveToFirst()) break label421; k = 0; n = j; localObject1 = localLinkedList1; if (localCursor.isAfterLast()) break label428; if (!this.cKg.Hs()) break label166; localCursor.close(); return -1; i = 8192; break; } label166: ak localak = new ak(); localak.convertFrom(localCursor); if (n != 0) if (localak.AH() != this.cKh.Hh()) break label527; label520: label527: for (int i3 = 0; ; i3 = n) { localCursor.moveToNext(); n = i3; break; boolean bool; if (paramInt > 0) bool = true; while (true) { try { ae localae2 = k.a(localak, false, paramString2, localPInt, localLinkedList2, bool); ae localae1 = localae2; paramInt--; if (localae1 == null) break label520; ((LinkedList)localObject1).add(localae1); int i1 = localae1.fzo; Object localObject2; if (localPInt.value > i) { com.tencent.mm.sdk.platformtools.aa.d("MicroMsg.BackupServer", "limitSize " + localPInt.value); int i2 = a((LinkedList)localObject1, localLinkedList2, localPInt.value); if (i2 < 0) { localCursor.close(); return i2; bool = false; continue; } } } catch (Exception localException) { com.tencent.mm.sdk.platformtools.aa.aM("MicroMsg.BackupServer", "backupChatMsg %s" + localException); localae1 = null; continue; this.cKh.A(paramString1, i1); localPInt.value = 0; localObject2 = new LinkedList(); localLinkedList2.clear(); } while (true) { localCursor.moveToNext(); k = i1; localObject1 = localObject2; break; label421: k = 0; localObject1 = localLinkedList1; label428: if (localPInt.value > 0) { int m = a((LinkedList)localObject1, localLinkedList2, localPInt.value); localPInt.value = 0; if (m < 0) { localCursor.close(); return m; } this.cKh.A(paramString1, k); } localCursor.close(); com.tencent.mm.sdk.platformtools.aa.d("MicroMsg.BackupServer", "backupChatMsg end " + paramString1); return 0; localObject2 = localObject1; } i1 = k; } } }