public void bindView(View view, Context context, Cursor cursor) {
   ViewHolder viewHolder = (ViewHolder) view.getTag();
   viewHolder.f3782i = cursor.getString(1);
   viewHolder.f3778e = cursor.getString(cursor.getColumnIndexOrThrow("username"));
   viewHolder.f3775b.setText(String.format("+%s", new Object[] {viewHolder.f3778e}));
   viewHolder.f3781h = cursor.getString(3);
   viewHolder.f3774a.setText(cursor.getString(cursor.getColumnIndex("name")));
   if (m6353a(viewHolder.f3778e)) {
     viewHolder.f3777d.setChecked(true);
   } else {
     viewHolder.f3777d.setChecked(false);
   }
   String string = cursor.getString(cursor.getColumnIndexOrThrow("vcard_avatar"));
   String string2 = cursor.getString(cursor.getColumnIndexOrThrow("photo_uri"));
   viewHolder.f3779f = string2;
   viewHolder.f3780g = string;
   CustomImageLoader.m4009a().m4020a(viewHolder.f3776c, string, string2, 2130837592);
 }
 private void m6037c(int i) {
   this.f3369o = i;
   this.f3366l = (TextView) this.a.findViewById(2131755117);
   this.f3367m = (ImageView) this.a.findViewById(2131755116);
   this.f3368n = this.a.findViewById(2131755535);
   if (i >= this.f3370p.f3373c.size()) {
     this.f3368n.setVisibility(8);
     return;
   }
   this.f3368n.setVisibility(0);
   this.f3366l.setText(((ContactEntityLite) this.f3370p.f3373c.get(i)).m4238e());
   CustomImageLoader.m4009a()
       .m4020a(
           this.f3367m,
           ((ContactEntityLite) this.f3370p.f3373c.get(i)).m4241h(),
           ((ContactEntityLite) this.f3370p.f3373c.get(i)).m4239f(),
           2130837592);
   this.f3368n.setOnClickListener(this);
 }
Exemple #3
0
 protected void onCreate(Bundle bundle) {
   CharSequence e;
   super.onCreate(bundle);
   getWindow().addFlags(524288);
   getWindow().addFlags(2097152);
   setContentView(2130903069);
   ButterKnife.m7741a((Activity) this);
   this.f4695N = (AudioManager) getSystemService("audio");
   this.f4705X = (Vibrator) getSystemService("vibrator");
   if (this.f4695N.requestAudioFocus(null, 3, 2) == 1) {
     Main.f1926a.m5683d("Gained Audio Focus");
   }
   this.f4692K = new Handler(Looper.getMainLooper());
   this.f4698Q = new Timer();
   this.f4688G = JabberId.m7386a(getIntent().getStringExtra("extra_jabber_id"));
   if (this.f4688G == null) {
     finish();
   }
   this.f4694M = getVolumeControlStream();
   ContactEntity b = ContactDataSource.m4553a().m4570b(this.f4688G.m7387a());
   if (b != null) {
     e = b.m4196e();
     if (b.m4212o() != null) {
       CustomImageLoader.m4009a().m4020a(this.f4709q, b.m4212o(), null, 2130837596);
     } else if (b.m4211n() != null) {
       Bitmap a = AddressBookHelper.m3940a(getContentResolver(), Uri.parse(b.m4211n()), true);
       if (a != null) {
         this.f4709q.setImageBitmap(a);
       } else {
         this.f4709q.setImageDrawable(getResources().getDrawable(2130837596));
       }
     }
   } else {
     e = null;
   }
   if (e == null) {
     this.f4710r.setText(XMPPUtils.m7089a(this.f4688G));
     this.f4711s.setText(null);
   } else {
     this.f4710r.setText(e);
     this.f4711s.setText(XMPPUtils.m7089a(this.f4688G));
   }
   this.f4713u.setVisibility(4);
   this.f4685D = UiMode.m7254a(getIntent().getStringExtra("extra_ui_mode"));
   this.f4686E = EndMode.m7253a(getIntent().getStringExtra("extra_end_mode"));
   this.f4687F = getIntent().getBooleanExtra("extra_call_out", false);
   switch (C05133.f4679a[this.f4685D.ordinal()]) {
     case C1128R.styleable.StickyListHeadersListView_android_padding /*1*/:
     case C1128R.styleable.StickyListHeadersListView_android_paddingLeft /*2*/:
       m7136q();
       this.f4700S = (SensorManager) getSystemService("sensor");
       this.f4701T = this.f4700S.getDefaultSensor(8);
       this.f4702U = (PowerManager) getSystemService("power");
       try {
         this.f4704W =
             PowerManager.class.getClass().getField("PROXIMITY_SCREEN_OFF_WAKE_LOCK").getInt(null);
       } catch (Throwable th) {
       }
       this.f4703V = this.f4702U.newWakeLock(this.f4704W, "com.bistalk.bisphone");
     default:
       finish();
   }
 }