Code with Finding: |
/*
* Decompiled with CFR 0_128.
*
* Could not load the following classes:
* android.accounts.Account
* android.accounts.AccountManager
* android.app.Activity
* android.app.AlertDialog
* android.app.AlertDialog$Builder
* android.app.Application
* android.app.Dialog
* android.content.ContentResolver
* android.content.Context
* android.content.DialogInterface
* android.content.DialogInterface$OnCancelListener
* android.content.DialogInterface$OnClickListener
* android.content.Intent
* android.content.Intent$ShortcutIconResource
* android.content.SharedPreferences
* android.content.SharedPreferences$Editor
* android.content.res.Configuration
* android.content.res.Resources
* android.database.Cursor
* android.graphics.Bitmap
* android.graphics.Bitmap$Config
* android.net.Uri
* android.os.Build
* android.os.Build$VERSION
* android.os.Bundle
* android.os.Environment
* android.os.Handler
* android.os.Parcelable
* android.provider.ContactsContract
* android.provider.ContactsContract$Profile
* android.text.Editable
* android.text.InputFilter
* android.text.InputFilter$LengthFilter
* android.text.TextUtils
* android.text.TextWatcher
* android.view.View
* android.view.View$OnClickListener
* android.view.View$OnTouchListener
* android.widget.CheckBox
* android.widget.EditText
* android.widget.ImageView
* android.widget.TextView
* com.actionbarsherlock.app.ActionBar
* com.actionbarsherlock.view.MenuItem
* com.whatsapp.App
* com.whatsapp.App$Me
* com.whatsapp.ProfilePhotoReminder
* com.whatsapp.VerifyMessageStoreActivity
* com.whatsapp.ac
* com.whatsapp.af
* com.whatsapp.agw
* com.whatsapp.as5
* com.whatsapp.ath
* com.whatsapp.aw8
* com.whatsapp.awn
* com.whatsapp.ax4
* com.whatsapp.axj
* com.whatsapp.axo
* com.whatsapp.axp
* com.whatsapp.dy
* com.whatsapp.e6
* com.whatsapp.gc
* com.whatsapp.ii
* com.whatsapp.iu
* com.whatsapp.ld
* com.whatsapp.lp
* com.whatsapp.nz
* com.whatsapp.o_
* com.whatsapp.oe
* com.whatsapp.os
* com.whatsapp.pa
* com.whatsapp.tr
* com.whatsapp.util.Log
* com.whatsapp.util.bu
* com.whatsapp.yt
*/
package com.whatsapp;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Application;
import android.app.Dialog;
import android.content.ContentResolver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.os.Parcelable;
import android.provider.ContactsContract;
import android.text.Editable;
import android.text.InputFilter;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import com.actionbarsherlock.app.ActionBar;
import com.actionbarsherlock.view.MenuItem;
import com.whatsapp.App;
import com.whatsapp.Conversations;
import com.whatsapp.Main;
import com.whatsapp.ProfilePhotoReminder;
import com.whatsapp.RegisterPhone;
import com.whatsapp.VerifyMessageStoreActivity;
import com.whatsapp.a91;
import com.whatsapp.a9f;
import com.whatsapp.a_h;
import com.whatsapp.ac;
import com.whatsapp.af;
import com.whatsapp.agl;
import com.whatsapp.agw;
import com.whatsapp.as5;
import com.whatsapp.ath;
import com.whatsapp.aw8;
import com.whatsapp.awn;
import com.whatsapp.ax4;
import com.whatsapp.axj;
import com.whatsapp.axo;
import com.whatsapp.axp;
import com.whatsapp.dy;
import com.whatsapp.e6;
import com.whatsapp.gc;
import com.whatsapp.ii;
import com.whatsapp.iu;
import com.whatsapp.ld;
import com.whatsapp.lp;
import com.whatsapp.messaging.MessageService;
import com.whatsapp.nz;
import com.whatsapp.o_;
import com.whatsapp.oe;
import com.whatsapp.os;
import com.whatsapp.pa;
import com.whatsapp.q2;
import com.whatsapp.tr;
import com.whatsapp.util.Log;
import com.whatsapp.util.bu;
import com.whatsapp.yt;
import java.io.File;
import java.net.URISyntaxException;
import java.util.Collection;
public class RegisterName
extends VerifyMessageStoreActivity
implements pa {
private static final String[] A;
private static yt k;
private static long t;
private a9f l;
private View m;
private axp n;
private EditText o;
private TextView p;
private os q;
private Handler r = new tr(this);
private Bitmap s;
private axo u = new oe(this);
private Handler v = new ath(this);
private View w;
private View.OnTouchListener x = new as5(this);
private axj y;
private ImageView z;
/*
* Enabled aggressive block sorting
*/
static {
String[] arrstring = new String[55];
String string = "X}\u0010'\u0012^}\u0005 \u0000G}X=\u0004^q\u0019'\u0015Cy\u001b'\u001bOj\u0003'\fO7\u0012<\u0013Ej";
int n = -1;
String[] arrstring2 = arrstring;
int n2 = 0;
block62 : do {
char[] arrc = string.toCharArray();
int n3 = arrc.length;
int n4 = 0;
do {
int n5;
if (n3 <= n4) {
String string2 = new String(arrc).intern();
switch (n) {
default: {
arrstring2[n2] = string2;
string = "Iw\u001a`\u0016By\u0003=\u0000Zh(>\u0013O~\u0012<\u0004D{\u0012=";
n2 = 1;
arrstring2 = arrstring;
n = 0;
continue block62;
}
case 0: {
arrstring2[n2] = string2;
string = "Iw\u001a`\u0016By\u0003=\u0000ZhY<\u0004Mq\u0004:\u0004Xv\u0016#\u0004\u0004q\u0019'\u0015Cy\u001b'\u001bOj(=\u0015Kj\u0003\u0011\u0015Cu\u0012";
n2 = 2;
arrstring2 = arrstring;
n = 1;
continue block62;
}
case 1: {
arrstring2[n2] = string2;
n2 = 3;
arrstring2 = arrstring;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X<\u0004Ym\u001a+AX}\u0010n\u0017Oj\u001e(\bO|Ln\u0004Rh\u001b'\u0002Cl\u001b7ANq\u0004>\rKaW-\u000eDl\u001e \u0014O8\u0004-\u0013O}\u0019";
n = 2;
continue block62;
}
case 2: {
arrstring2[n2] = string2;
n2 = 4;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X<\u0004Ym\u001a+";
n = 3;
arrstring2 = arrstring;
continue block62;
}
case 3: {
arrstring2[n2] = string2;
n2 = 5;
string = "X}\u0010'\u0012^}\u0005c\u000fKu\u0012";
n = 4;
arrstring2 = arrstring;
continue block62;
}
case 4: {
arrstring2[n2] = string2;
n2 = 6;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X*\u0004Yl\u0005!\u0018";
n = 5;
arrstring2 = arrstring;
continue block62;
}
case 5: {
arrstring2[n2] = string2;
n2 = 7;
string = "Iw\u001a`\u0016By\u0003=\u0000Zh(>\u0013O~\u0012<\u0004D{\u0012=";
n = 6;
arrstring2 = arrstring;
continue block62;
}
case 6: {
arrstring2[n2] = string2;
n2 = 8;
string = "Iw\u001a`\u0016By\u0003=\u0000ZhY<\u0004Mq\u0004:\u0004Xv\u0016#\u0004\u0004q\u0019'\u0015Cy\u001b'\u001bOj(=\u0015Kj\u0003\u0011\u0015Cu\u0012";
n = 7;
arrstring2 = arrstring;
continue block62;
}
case 7: {
arrstring2[n2] = string2;
n2 = 9;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X-\rOy\u0005:\bDq\u0003'\u0000Fq\r+\u0013^q\u001a+NOj\u0005!\u0013";
n = 8;
arrstring2 = arrstring;
continue block62;
}
case 8: {
arrstring2[n2] = string2;
n2 = 10;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X>\u0000_k\u0012";
n = 9;
arrstring2 = arrstring;
continue block62;
}
case 9: {
arrstring2[n2] = string2;
n2 = 11;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X#\u0004Yk\u0016)\u0004Yl\u0018<\u0004\\}\u0005'\u0007C}\u0013a\fCk\u0004'\u000fM5\u0007/\u0013Ku\u0004n\u0003Em\u0019-\u0004\nl\u0018n\u0013O\u0007&\u000eD}";
n = 10;
arrstring2 = arrstring;
continue block62;
}
case 10: {
arrstring2[n2] = string2;
n2 = 12;
string = "N}\u0015;\u0006";
n = 11;
arrstring2 = arrstring;
continue block62;
}
case 11: {
arrstring2[n2] = string2;
n2 = 13;
string = "X}\u0010 \u0000G}X#\u0012Mk\u0003!\u0013On\u0012<\bLq\u0012*NMj\u0018;\u0011uk\u000e \u0002uj\u0012?\u0014Cj\u0012*";
n = 12;
arrstring2 = arrstring;
continue block62;
}
case 12: {
arrstring2[n2] = string2;
n2 = 14;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X=\u0004^G\u0013'\u0013^a";
n = 13;
arrstring2 = arrstring;
continue block62;
}
case 13: {
arrstring2[n2] = string2;
n2 = 15;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X<\u0004Yl\u0018<\u0004Nq\u0016\"\u000eM7\u0014!\u000fMj\u0016:\u0012";
n = 14;
arrstring2 = arrstring;
continue block62;
}
case 14: {
arrstring2[n2] = string2;
n2 = 16;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X \u000e\u0007h\u0002=\tDy\u001a+";
n = 15;
arrstring2 = arrstring;
continue block62;
}
case 15: {
arrstring2[n2] = string2;
n2 = 17;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X=\u0015Kj\u0003";
n = 16;
arrstring2 = arrstring;
continue block62;
}
case 16: {
arrstring2[n2] = string2;
n2 = 18;
string = "Iw\u001a`\u0016By\u0003=\u0000Zh";
n = 17;
arrstring2 = arrstring;
continue block62;
}
case 17: {
arrstring2[n2] = string2;
n2 = 19;
string = "Kv\u0013<\u000eC|Y'\u000f^}\u0019:OK{\u0003'\u000eD6:\u000f(d";
n = 18;
arrstring2 = arrstring;
continue block62;
}
case 18: {
arrstring2[n2] = string2;
n2 = 20;
string = "Iw\u001a`\u0016By\u0003=\u0000ZhY\u0003\u0000Cv";
n = 19;
arrstring2 = arrstring;
continue block62;
}
case 19: {
arrstring2[n2] = string2;
n2 = 21;
string = "Kv\u0013<\u000eC|Y'\u000f^}\u0019:OIy\u0003+\u0006Ej\u000e`-kM9\r)oJ";
n = 20;
arrstring2 = arrstring;
continue block62;
}
case 20: {
arrstring2[n2] = string2;
n2 = 22;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X*\bKt\u0018)NCv\u001e:\u0011Xw\u0010<\u0004Yk";
n = 21;
arrstring2 = arrstring;
continue block62;
}
case 21: {
arrstring2[n2] = string2;
n2 = 23;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X*\bKt\u0018)NX}\u0004:\u000eX}";
n = 22;
arrstring2 = arrstring;
continue block62;
}
case 22: {
arrstring2[n2] = string2;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X*\bKt\u0018)NLy\u001e\"\u0004N5\u0019+\u0015";
n = 23;
n2 = 24;
arrstring2 = arrstring;
continue block62;
}
case 23: {
arrstring2[n2] = string2;
n2 = 25;
arrstring2 = arrstring;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X*\bKt\u0018)NCv\u001e:\u0011Xw\u0010<\u0004YkX'\u000fClZ \u0014FtX<\u0004Gw\u0001+";
n = 24;
continue block62;
}
case 24: {
arrstring2[n2] = string2;
n2 = 26;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X*\bKt\u0018)NIy\u0019:LIw\u0019 \u0004Il";
n = 25;
arrstring2 = arrstring;
continue block62;
}
case 25: {
arrstring2[n2] = string2;
n2 = 27;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X)\u0004^u\u0012 \u0000G}W";
n = 26;
arrstring2 = arrstring;
continue block62;
}
case 26: {
arrstring2[n2] = string2;
n2 = 28;
string = "Nq\u0004>\rKa( \u0000G}";
n = 27;
arrstring2 = arrstring;
continue block62;
}
case 27: {
arrstring2[n2] = string2;
n2 = 29;
string = "Iw\u001a`\u0006Ew\u0010\"\u0004";
n = 28;
arrstring2 = arrstring;
continue block62;
}
case 28: {
arrstring2[n2] = string2;
n2 = 30;
string = "Ck(<\u0004Y}\u0003";
n = 29;
arrstring2 = arrstring;
continue block62;
}
case 29: {
arrstring2[n2] = string2;
n2 = 31;
string = "Iw\u001a`\u0016By\u0003=\u0000Zh(>\u0013O~\u0012<\u0004D{\u0012=";
n = 30;
arrstring2 = arrstring;
continue block62;
}
case 30: {
arrstring2[n2] = string2;
n2 = 32;
string = "Iw\u001a`\u0016By\u0003=\u0000ZhY<\u0004Mq\u0004:\u0004Xv\u0016#\u0004\u0004q\u0019'\u0015Cy\u001b'\u001bOj(=\u0015Kj\u0003\u0011\u0015Cu\u0012";
n = 31;
arrstring2 = arrstring;
continue block62;
}
case 31: {
arrstring2[n2] = string2;
n2 = 33;
string = "Nm\u0007\"\bIy\u0003+";
n = 32;
arrstring2 = arrstring;
continue block62;
}
case 32: {
arrstring2[n2] = string2;
n2 = 34;
string = "Kv\u0013<\u000eC|Y'\u000f^}\u0019:OO`\u0003<\u0000\u0004k\u001f!\u0013^{\u0002:Oc[8\u0000>x]$\u00014x[2";
n = 33;
arrstring2 = arrstring;
continue block62;
}
case 33: {
arrstring2[n2] = string2;
n2 = 35;
string = "Kv\u0013<\u000eC|Y'\u000f^}\u0019:OO`\u0003<\u0000\u0004k\u001f!\u0013^{\u0002:OdY:\u000b";
n = 34;
arrstring2 = arrstring;
continue block62;
}
case 34: {
arrstring2[n2] = string2;
n2 = 36;
string = "Iw\u001a`\u0000D|\u0005!\bN6\u001b/\u0014D{\u001f+\u0013\u0004y\u0014:\bEvY\u0007/yL6\u0002-uK?\u00013~[\"\u001a";
n = 35;
arrstring2 = arrstring;
continue block62;
}
case 35: {
arrstring2[n2] = string2;
n2 = 37;
string = "Kv\u0013<\u000eC|Y'\u000f^}\u0019:OO`\u0003<\u0000\u0004k\u001f!\u0013^{\u0002:OcV#\u000b/~";
n = 36;
arrstring2 = arrstring;
continue block62;
}
case 36: {
arrstring2[n2] = string2;
n2 = 38;
string = "Iw\u001a`\u0016By\u0003=\u0000ZhY\u0003\u0000Cv";
n = 37;
arrstring2 = arrstring;
continue block62;
}
case 37: {
arrstring2[n2] = string2;
n2 = 39;
string = "Iw\u001a`\u0016By\u0003=\u0000Zh";
n = 38;
arrstring2 = arrstring;
continue block62;
}
case 38: {
arrstring2[n2] = string2;
n2 = 40;
string = "Iw\u001a`\u0000D|\u0005!\bN6\u001b/\u0014D{\u001f+\u0013\u0004y\u0014:\bEvY\u001b/cV$\u001a fT(\u001d)eJ#\r4~";
n = 39;
arrstring2 = arrstring;
continue block62;
}
case 39: {
arrstring2[n2] = string2;
n2 = 41;
string = "Kv\u0013<\u000eC|Y'\u000f^}\u0019:OO`\u0003<\u0000\u0004k\u001f!\u0013^{\u0002:OdY:\u000b";
n = 40;
arrstring2 = arrstring;
continue block62;
}
case 40: {
arrstring2[n2] = string2;
string = "Kv\u0013<\u000eC|Y'\u000f^}\u0019:OO`\u0003<\u0000\u0004k\u001f!\u0013^{\u0002:OcV#\u000b/~";
n = 41;
n2 = 42;
arrstring2 = arrstring;
continue block62;
}
case 41: {
arrstring2[n2] = string2;
n2 = 43;
arrstring2 = arrstring;
string = "Iy\u0019 \u000e^8\u0007/\u0013Y}W=\tEj\u0003-\u0014^8\u0002<\b\n";
n = 42;
continue block62;
}
case 42: {
arrstring2[n2] = string2;
n2 = 44;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X#\u0012Mk\u0003!\u0013O7\u001f+\u0000Fl\u001f7";
n = 43;
arrstring2 = arrstring;
continue block62;
}
case 43: {
arrstring2[n2] = string2;
n2 = 45;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X-\u0013Oy\u0003+NGq\u0004=\bDZ>\u0000Xy\u001a=AHw\u0002 \u0002O8\u0003!AX}\u0010>\tEv\u0012";
n = 44;
arrstring2 = arrstring;
continue block62;
}
case 44: {
arrstring2[n2] = string2;
n2 = 46;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X=\u0016\u0007}\u000f>\bX}\u0013";
n = 45;
arrstring2 = arrstring;
continue block62;
}
case 45: {
arrstring2[n2] = string2;
n2 = 47;
string = "Gw\u0002 \u0015O|";
n = 46;
arrstring2 = arrstring;
continue block62;
}
case 46: {
arrstring2[n2] = string2;
n2 = 48;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X-\u0013Oy\u0003+NHy\u0013c\u0012^y\u0003+AHw\u0002 \u0002O8\u0003!AGy\u001e ";
n = 47;
arrstring2 = arrstring;
continue block62;
}
case 47: {
arrstring2[n2] = string2;
n2 = 49;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X-\rE{\u001cc\u0016Xw\u0019)";
n = 48;
arrstring2 = arrstring;
continue block62;
}
case 48: {
arrstring2[n2] = string2;
n2 = 50;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X-\rC{\u001c+\u0005\u0005k\u0013-\u0000X|\u0004:\u0000^}W";
n = 49;
arrstring2 = arrstring;
continue block62;
}
case 49: {
arrstring2[n2] = string2;
n2 = 51;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X-\u0013Oy\u0003+NX}\u0010'\u0012^j\u0016:\bEvW/\rX}\u0016*\u0018\nn\u0012<\bLq\u0012*AHw\u0002 \u0002O8\u0003!AGy\u001e ";
n = 50;
arrstring2 = arrstring;
continue block62;
}
case 50: {
arrstring2[n2] = string2;
n2 = 52;
string = "yw\u00197";
n = 51;
arrstring2 = arrstring;
continue block62;
}
case 51: {
arrstring2[n2] = string2;
n2 = 53;
string = "X}\u0010'\u0012^}\u0005 \u0000G}X-\u0013Oy\u0003+";
n = 52;
arrstring2 = arrstring;
continue block62;
}
case 52: {
arrstring2[n2] = string2;
n2 = 54;
string = "Gw\u0002 \u0015O|(<\u000e";
n = 53;
arrstring2 = arrstring;
continue block62;
}
case 53:
}
arrstring2[n2] = string2;
A = arrstring;
t = 600000L;
k = null;
return;
}
char c = arrc[n4];
switch (n4 % 5) {
default: {
n5 = 97;
break;
}
case 0: {
n5 = 42;
break;
}
case 1: {
n5 = 24;
break;
}
case 2: {
n5 = 119;
break;
}
case 3: {
n5 = 78;
}
}
arrc[n4] = (char)(n5 ^ c);
++n4;
} while (true);
break;
} while (true);
}
static View a(RegisterName registerName, View view) {
registerName.m = view;
return view;
}
static yt a(yt yt2) {
k = yt2;
return yt2;
}
public static void a(Context context, String string) {
Intent intent = RegisterName.k();
Intent intent2 = new Intent();
intent2.putExtra(A[37], (Parcelable)intent);
intent2.putExtra(A[33], false);
intent2.putExtra(A[35], string);
intent2.putExtra(A[34], (Parcelable)Intent.ShortcutIconResource.fromContext((Context)context, (int)2130838896));
intent2.setAction(A[36]);
context.sendBroadcast(intent2);
}
/*
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
public static void a(Context context, String string, int n) {
Intent intent;
block5 : {
block4 : {
if (n != 0) break block4;
intent = new Intent();
intent.setClassName(A[39], A[38]);
intent.addFlags(268435456);
intent.addFlags(67108864);
if (!App.U) break block5;
}
intent = RegisterName.k();
}
Intent intent2 = new Intent();
try {
intent2.putExtra(A[42], (Parcelable)Intent.parseUri((String)intent.toUri(0), (int)0));
}
catch (URISyntaxException uRISyntaxException) {
Log.e((String)(A[43] + uRISyntaxException.getMessage()));
}
intent2.putExtra(A[41], string);
intent2.setAction(A[40]);
context.sendBroadcast(intent2);
}
private void a(Bitmap bitmap) {
this.z.setImageBitmap(bitmap);
}
static void a(RegisterName registerName) {
registerName.g();
}
static Handler b(RegisterName registerName) {
return registerName.r;
}
static void c(RegisterName registerName) {
registerName.f();
}
static TextView d(RegisterName registerName) {
return registerName.p;
}
static View e(RegisterName registerName) {
return registerName.m;
}
static os f(RegisterName registerName) {
return registerName.q;
}
private void f() {
SharedPreferences.Editor editor = this.getSharedPreferences(A[7], 0).edit();
editor.remove(A[8]);
if (!editor.commit()) {
Log.w((String)A[9]);
}
}
static axj g(RegisterName registerName) {
return registerName.y;
}
private void g() {
long l = this.p();
if (l > 0L && System.currentTimeMillis() - l > t && this.m != null) {
this.m.setVisibility(0);
}
}
static View.OnTouchListener h(RegisterName registerName) {
return registerName.x;
}
private void h() {
block7 : {
String string;
block6 : {
Log.i((String)A[17]);
string = bu.a((String)((EditText)this.findViewById(2131427957)).getText().toString().trim());
if (string.length() != 0) break block6;
Log.w((String)A[16]);
App.b((Context)this, (int)2131624736, (int)0);
if (!App.U) break block7;
}
if (k == null || yt.a((yt)k)) {
((App)this.getApplication()).v(string);
App.o((String)string);
App.c((Context)this, (boolean)false);
k = new yt(this, this.v);
this.showDialog(0);
if (((CheckBox)this.findViewById(2131427963)).isChecked()) {
RegisterName.a((Context)this, this.getString(2131624007));
}
if (this.m != null) {
this.m.setVisibility(8);
}
this.l();
this.r.sendEmptyMessageDelayed(0, t);
}
}
}
private Dialog i() {
this.n = new ax4(this, (Activity)this);
this.n.setCancelable(false);
return this.n;
}
static void i(RegisterName registerName) {
registerName.h();
}
static EditText j(RegisterName registerName) {
return registerName.o;
}
static yt j() {
return k;
}
public static Intent k() {
Intent intent = new Intent();
intent.setClassName(A[18], A[20]);
intent.setAction(A[19]);
intent.addCategory(A[21]);
intent.addFlags(268435456);
intent.addFlags(2097152);
return intent;
}
static a9f k(RegisterName registerName) {
return registerName.l;
}
private void l() {
SharedPreferences.Editor editor = this.getSharedPreferences(A[1], 0).edit();
editor.putLong(A[2], System.currentTimeMillis());
if (!editor.commit()) {
Log.w((String)A[0]);
}
}
/*
* Enabled aggressive block sorting
*/
private void m() {
Bitmap bitmap;
int n = this.getResources().getDimensionPixelSize(2131361876);
float f = this.getResources().getDimension(2131361875);
if (this.l == null || ld.a((String)this.l.e)) {
this.z.setEnabled(false);
this.w.setVisibility(0);
if (this.s == null) {
this.s = Bitmap.createBitmap((int)n, (int)n, (Bitmap.Config)Bitmap.Config.ALPHA_8);
}
bitmap = this.s;
} else {
this.z.setEnabled(true);
this.w.setVisibility(8);
boolean bl = this.l.l().exists();
bitmap = null;
if (!bl || (bitmap = this.l.a(n, f, false)) == null) {
bitmap = a9f.a(2130837654, n, f);
}
}
this.a(bitmap);
}
private Dialog n() {
this.y = new axj(this);
this.y.setCancelable(false);
return this.y;
}
/*
* Unable to fully structure code
* Enabled aggressive exception aggregation
*/
private String o() {
block17 : {
block18 : {
var1_1 = null;
var2_2 = App.U;
if (Build.VERSION.SDK_INT < 14) break block17;
var12_3 = this.getContentResolver();
var13_4 = ContactsContract.Profile.CONTENT_URI;
var14_5 = new String[]{RegisterName.A[28]};
var15_6 = var12_3.query(var13_4, var14_5, null, null, null);
if (var15_6 == null) break block17;
try {
var17_7 = var15_6.moveToFirst();
** if (!var17_7) goto lbl-1000
}
catch (Exception var16_12) {
try {
throw var16_12;
}
catch (Exception var11_11) lbl-1000: // 2 sources:
{
do {
Log.e((String)(RegisterName.A[27] + var11_10.toString()));
var3_9 = var1_1;
break;
} while (true);
}
}
lbl-1000: // 1 sources:
{
var3_9 = var19_8 = var15_6.getString(0);
lbl16: // 3 sources:
var15_6.close();
lbl17: // 3 sources:
if (var3_9 == null && (var4_14 = AccountManager.get((Context)App.r.getApplicationContext())) != null && (var5_15 = var4_14.getAccounts()) != null) {
for (Account var8_18 : var5_15) {
if (!var8_18.type.equals(RegisterName.A[29])) continue;
var10_19 = var8_18.name.contains("@");
if (var10_19) {
var3_9 = var8_18.name.substring(0, var8_18.name.indexOf("@")).replace('.', ' ');
if (!var2_2) break;
}
var3_9 = var8_18.name.replace('.', ' ');
if (!var2_2) break;
if (!var2_2) continue;
}
}
return var3_9;
}
lbl-1000: // 1 sources:
{
break block18;
}
catch (Exception var9_20) {
throw var9_20;
}
catch (Exception var18_13) {
var1_1 = var3_9;
var11_10 = var18_13;
** continue;
}
}
var3_9 = null;
** GOTO lbl16
}
var3_9 = null;
** GOTO lbl17
}
private long p() {
return this.getSharedPreferences(A[31], 0).getLong(A[32], -1L);
}
public void a() {
}
public void a(String string) {
}
public void a(Collection collection) {
}
public void b(String string) {
}
protected void b(boolean bl) {
super.b(bl);
if (this.n != null && bl) {
this.n.a(1);
}
}
/*
* Enabled aggressive block sorting
*/
protected void c() {
boolean bl;
App.Me me;
block10 : {
block9 : {
bl = App.U;
if (this.getIntent().getExtras() == null || !this.getIntent().getBooleanExtra(A[12], false)) break block9;
me = App.u;
if (!bl) break block10;
}
me = App.f((Context)this);
}
me.jabber_id = App.i((Context)App.r);
if (me.jabber_id == null) {
Log.e((String)A[11]);
App.d((Context)this, (int)1);
this.startActivity(new Intent((Context)this, RegisterPhone.class));
this.finish();
return;
}
if (!App.b((App.Me)me)) {
this.finish();
return;
}
App.u = me;
ProfilePhotoReminder.r = true;
Log.i((String)A[14]);
App.a6 = false;
App.r((Context)this.getApplication());
App.bb();
MessageService.b((Context)App.r);
Log.i((String)A[13]);
App.g();
this.l = App.ay.d();
App.a((String)this.l.e, (int)0, (int)2);
this.m();
this.w.setVisibility(0);
if (this.n == null) return;
if (App.aW.L() != 0) {
Log.i((String)A[15]);
this.n.a(2);
if (!bl) return;
}
this.removeDialog(103);
}
public void c(String string) {
}
public void d(String string) {
if (this.l != null && string.equals(this.l.e)) {
this.m();
}
}
/*
* Enabled aggressive block sorting
* Lifted jumps to return sites
*/
protected void onActivityResult(int n, int n2, Intent intent) {
boolean bl = App.U;
switch (n) {
default: {
return;
}
case 12: {
if (n2 != -1) return;
if (intent != null && intent.getBooleanExtra(A[30], false)) {
a_h.b(this.l, (Activity)this);
this.m();
if (!bl) return;
}
a_h.a(intent, this.l, (Activity)this, 13, (awn)this);
if (!bl) return;
}
case 13:
}
a_h.a().delete();
if (n2 == -1) {
if (!a_h.a(this.l, (Activity)this)) return;
this.m();
if (!bl) return;
}
if (n2 != 0) return;
if (intent == null) return;
a_h.a(intent, (awn)this);
}
public void onConfigurationChanged(Configuration configuration) {
super.onConfigurationChanged(configuration);
if (this.y != null) {
this.y.a();
this.y.b();
this.g();
}
if (this.n != null) {
this.n.a();
}
this.q.a(configuration);
}
protected void onCreate(Bundle bundle) {
block29 : {
block28 : {
boolean bl;
block24 : {
block25 : {
block27 : {
block26 : {
block23 : {
block22 : {
block21 : {
block18 : {
block20 : {
block19 : {
bl = App.U;
Log.i((String)A[53]);
super.onCreate(bundle);
this.getSupportActionBar().setDisplayShowCustomEnabled(true);
this.setContentView(2130903195);
int n = App.n((Context)this);
if (n == 2) break block18;
if (n != 3) break block19;
Log.i((String)A[51]);
if (!bl) break block20;
}
Log.e((String)A[48]);
}
this.startActivity(new Intent((Context)this, Main.class));
this.finish();
return;
}
if (App.i((Context)App.r) == null) {
Log.e((String)A[45]);
App.d((Context)this, (int)1);
this.startActivity(new Intent((Context)this, RegisterPhone.class));
this.finish();
return;
}
iu.a((Activity)this, (ActionBar)this.getSupportActionBar(), (String)this.getString(2131624612), (View.OnClickListener)new e6(this));
if (App.a2 != 0 && !Build.MANUFACTURER.startsWith(A[52])) break block21;
this.findViewById(2131427961).setVisibility(8);
((CheckBox)this.findViewById(2131427963)).setChecked(false);
this.findViewById(2131427632).setVisibility(8);
this.findViewById(2131427635).setVisibility(8);
if (!bl) break block22;
}
((CheckBox)this.findViewById(2131427963)).setChecked(true);
this.findViewById(2131427961).setOnClickListener((View.OnClickListener)new ii(this));
}
this.p = (TextView)this.findViewById(2131427960);
this.p.setText((CharSequence)Integer.toString(25));
this.findViewById(2131427775).setOnClickListener((View.OnClickListener)new o_(this));
this.q = new os((Activity)this);
this.q.a(this.u);
this.z = (ImageView)this.findViewById(2131427926);
this.z.setOnClickListener((View.OnClickListener)new aw8(this));
this.w = this.findViewById(2131427666);
if (k == null) break block23;
this.l = App.ay.d();
this.m();
this.showDialog(0);
if (!bl) break block24;
}
if (App.aW.u()) break block25;
String string = Environment.getExternalStorageState();
Log.i((String)(A[50] + string));
if (string.equals(A[47]) || string.equals(A[54])) break block26;
this.showDialog(102);
if (!bl) break block27;
}
this.b();
}
if (!bl) break block24;
}
Log.i((String)A[44]);
App.aW.w();
App.a1();
App.r.aC();
this.c();
}
this.o = (EditText)this.findViewById(2131427957);
lp.a((TextView)this.o);
this.o.addTextChangedListener((TextWatcher)new ac(this));
EditText editText = this.o;
InputFilter[] arrinputFilter = new InputFilter[]{new InputFilter.LengthFilter(25)};
editText.setFilters(arrinputFilter);
String string = this.o();
if (!TextUtils.isEmpty((CharSequence)string)) {
this.o.setText((CharSequence)string);
this.o.setSelection(this.o.length());
}
if (!App.r.j()) break block28;
Log.w((String)A[49]);
Conversations.a((Activity)this, 113);
if (!bl) break block29;
}
if (App.I()) {
Log.w((String)A[46]);
Conversations.a((Activity)this, 114);
}
}
App.d((Context)this, (int)2);
App.b((pa)this);
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
protected Dialog onCreateDialog(int n) {
switch (n) {
default: {
return super.onCreateDialog(n);
}
case 0: {
Log.i((String)A[22]);
Dialog dialog = this.n();
if (k != null) return dialog;
Log.w((String)A[25]);
new Handler().postDelayed((Runnable)new af(this), 3L);
return dialog;
}
case 103: {
Log.i((String)A[23]);
return this.i();
}
case 1: {
Log.w((String)A[24]);
AlertDialog.Builder builder = new AlertDialog.Builder((Context)this).setTitle(2131624457);
Object[] arrobject = new Object[]{this.getString(2131624135)};
return builder.setMessage((CharSequence)this.getString(2131624455, arrobject)).setPositiveButton(2131624456, (DialogInterface.OnClickListener)new gc(this)).create();
}
case 109:
}
Log.w((String)A[26]);
return new AlertDialog.Builder((Context)this).setMessage(2131624767).setPositiveButton(2131624080, (DialogInterface.OnClickListener)new agl(this)).setNeutralButton(2131624060, (DialogInterface.OnClickListener)new agw(this)).setOnCancelListener((DialogInterface.OnCancelListener)new nz(this)).create();
}
public void onDestroy() {
super.onDestroy();
Log.i((String)A[6]);
App.a((boolean)true, (boolean)false);
App.a((pa)this);
}
public boolean onOptionsItemSelected(MenuItem menuItem) {
switch (menuItem.getItemId()) {
default: {
return false;
}
case 0: {
this.e(A[5]);
return true;
}
case 1:
}
App.u((Context)this);
this.finish();
return true;
}
public void onPause() {
Log.i((String)A[10]);
super.onPause();
if (k != null) {
k.a();
}
}
public void onResume() {
Log.i((String)A[4]);
super.onResume();
this.a(true);
if (k != null) {
this.showDialog(0);
k.a(this.v);
this.g();
}
if (App.n((Context)this) == 3 && this.y == null) {
this.showDialog(0);
Log.i((String)A[3]);
}
}
}
|