public View getView(int paramInt, View paramView, ViewGroup paramViewGroup) { ck localck; if (paramView == null) { localck = new ck(); paramView = this.iD.inflate(2130903198, null); localck.mX = ((LinearLayout)paramView.findViewById(2131296822)); localck.mY = ((ImageView)paramView.findViewById(2131296338)); localck.mS = ((TextView)paramView.findViewById(2131296337)); localck.ne = ((TextView)paramView.findViewById(2131296894)); localck.na = ((LinearLayout)paramView.findViewById(2131296824)); localck.nb = ((TextView)paramView.findViewById(2131296825)); paramView.setTag(localck); } ae localae; try { localae = (ae)this.mH.get(paramInt); if (isEnabled(paramInt)) { localck.nc = true; localck.mX.setVisibility(0); localck.na.setVisibility(8); if (localae.gE().equals("1")) paramView.setBackgroundResource(2130837903); while (true) { localck.ne.setVisibility(0); localck.ne.setText(localae.gy()); localck.mS.setText(localae.getDisplayName()); localck.mY.setImageResource(2130837907); return paramView; localck = (ck)paramView.getTag(); break; paramView.setBackgroundResource(2130837902); } } } catch (Exception localException) { b.eA("PhoneListAdapter getView: " + localException.toString()); return paramView; } localck.nc = false; String str = localae.getDisplayName(); localck.nb.setText(str); localck.mX.setVisibility(8); localck.na.setVisibility(0); return paramView; }
public void ci() { while (true) { HashMap localHashMap; Iterator localIterator; try { this.mU = ""; localHashMap = new HashMap(); localHashMap.put("#", "#"); if (this.mW == null) break label430; this.mW.axA.clear(); this.mW.axA.put("#", "0"); break label430; if (i >= this.mH.size()) { Set localSet = localHashMap.keySet(); String[] arrayOfString = new String[localSet.size()]; localSet.toArray(arrayOfString); List localList = Arrays.asList(arrayOfString); Collections.sort(localList); localIterator = localList.iterator(); if (!localIterator.hasNext()) { this.mW.pK(); this.mW.postInvalidate(); } } else { try { ae localae = (ae)this.mH.get(i); char c = localae.getDisplayName().toUpperCase().charAt(0); if ((c >= 'A') && (c <= 'Z')) { localHashMap.put(c, c); if ((!localae.fP()) && (localae.getDisplayName().trim().length() == 1)) this.mW.axA.put(c, i + 1); } else if ((c == '#') && (!localae.fP()) && (localae.getDisplayName().trim().length() == 1)) { this.mW.axA.put(c, i + 1); } } catch (Exception localException2) { localException2.printStackTrace(); } } } catch (Exception localException1) { localException1.printStackTrace(); return; } String str = (String)localIterator.next(); this.mU += (String)localHashMap.get(str); continue; label430: int i = 0; continue; i++; } }