Code with Finding: |
/*
* Decompiled with CFR 0_128.
*
* Could not load the following classes:
* android.content.Context
* android.content.res.Resources
* android.graphics.Paint
* android.os.Handler
* android.os.Messenger
* android.text.TextPaint
* android.view.LayoutInflater
* android.view.View
* android.view.ViewGroup
* android.widget.ArrayAdapter
* android.widget.ImageView
* android.widget.TextView
* com.whatsapp.App
* com.whatsapp.h9
* com.whatsapp.lp
* com.whatsapp.mt
* com.whatsapp.util.bu
*/
package com.whatsapp;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Paint;
import android.os.Handler;
import android.os.Messenger;
import android.text.TextPaint;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.whatsapp.App;
import com.whatsapp.GroupChatInfo;
import com.whatsapp.a91;
import com.whatsapp.a9f;
import com.whatsapp.h9;
import com.whatsapp.lp;
import com.whatsapp.mt;
import com.whatsapp.q2;
import com.whatsapp.util.bu;
import java.util.List;
class ab2
extends ArrayAdapter {
private static final String z;
public LayoutInflater a;
final GroupChatInfo b;
/*
* Enabled aggressive block sorting
*/
static {
char[] arrc = "*(\u0019\u001f|\u000b/D\td\u001auY\r`".toCharArray();
int n = arrc.length;
int n2 = 0;
do {
int n3;
if (n <= n2) {
z = new String(arrc).intern();
return;
}
char c = arrc[n2];
switch (n2 % 5) {
default: {
n3 = 20;
break;
}
case 0: {
n3 = 106;
break;
}
case 1: {
n3 = 91;
break;
}
case 2: {
n3 = 55;
break;
}
case 3: {
n3 = 104;
}
}
arrc[n2] = (char)(n3 ^ c);
++n2;
} while (true);
}
public ab2(GroupChatInfo groupChatInfo, Context context, List list) {
this.b = groupChatInfo;
super(context, 2130903148, list);
this.a = LayoutInflater.from((Context)context);
}
private void a(TextView textView, String string) {
textView.setText(bu.b((String)string, (Context)this.b.getBaseContext(), (Paint)textView.getPaint()));
}
private boolean a(int n) {
return App.ay.c(((a9f)GroupChatInfo.j((GroupChatInfo)this.b).get((int)n)).e);
}
public int getCount() {
return GroupChatInfo.j(this.b).size();
}
/*
* Enabled aggressive block sorting
*/
public View getView(int n, View view, ViewGroup viewGroup) {
block19 : {
TextView textView;
ImageView imageView;
TextView textView2;
a9f a9f2;
TextView textView3;
block20 : {
TextView textView4;
boolean bl;
block16 : {
block18 : {
block17 : {
block15 : {
block14 : {
bl = App.U;
if (view == null) {
View view2 = lp.a((LayoutInflater)this.a, (int)2130903148, (ViewGroup)viewGroup, (boolean)false);
if (!bl) {
view = view2;
}
}
if (n != -1 + this.getCount() || h9.h((String)GroupChatInfo.k(this.b))) break block14;
view.setBackgroundResource(2130839006);
view.findViewById(2131427543).setVisibility(8);
if (!bl) break block15;
}
view.setBackgroundResource(2130839008);
view.findViewById(2131427543).setVisibility(0);
}
textView4 = (TextView)view.findViewById(2131427637);
textView3 = (TextView)view.findViewById(2131427535);
imageView = (ImageView)view.findViewById(2131427818);
textView = (TextView)view.findViewById(2131427819);
textView2 = (TextView)view.findViewById(2131427820);
textView4.setText(null);
textView4.setTextColor(this.b.getResources().getColor(2131296299));
textView3.setText(null);
textView3.setTextColor(this.b.getResources().getColor(2131296298));
mt.b((TextView)textView3);
textView.setVisibility(8);
textView2.setVisibility(8);
if (!this.a(n)) break block16;
view.setTag((Object)null);
textView4.setText((CharSequence)this.b.getString(2131625147));
if (App.b) break block17;
App.a((String)(App.a9() + z), (long)0L, (Messenger)new Messenger(GroupChatInfo.e(this.b)));
if (!bl) break block18;
}
this.a(textView3, App.at);
}
if (h9.h((String)GroupChatInfo.k(this.b))) {
textView.setVisibility(0);
}
GroupChatInfo.h(this.b).a((a9f)App.ay.d(), imageView);
if (!bl) break block19;
}
a9f2 = (a9f)((Object)this.getItem(n));
view.setTag((Object)a9f2);
textView4.setText((CharSequence)a9f2.a((Context)this.b));
if (!GroupChatInfo.c(this.b).containsKey(a9f2.e)) break block20;
imageView.setImageResource(2130838851);
textView4.setTextColor(this.b.getResources().getColor(2131296285));
textView3.setTextColor(this.b.getResources().getColor(2131296285));
textView3.setText(2131625019);
if (!bl) break block19;
}
if (h9.b((String)GroupChatInfo.k(this.b), (String)a9f2.e)) {
textView.setVisibility(0);
}
GroupChatInfo.h(this.b).a(a9f2, imageView);
if (a9f2.y()) {
textView2.setVisibility(0);
String string = a9f2.D != null ? "~" + a9f2.D : null;
this.a(textView2, string);
}
this.a(textView3, a9f2.a);
}
return view;
}
}
|