正在查看: Cantique de Louanges v12 应用的 profile.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cantique de Louanges v12 应用的 profile.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.eugene.hymnesetlouanges;
import android.R;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.app.SearchManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Typeface;
import android.media.ExifInterface;
import android.media.ThumbnailUtils;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.provider.MediaStore;
import android.text.format.DateFormat;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import android.widget.Toast;
import com.appnext.ads.fullscreen.RewardedVideo;
import com.appnext.core.AppnextAdCreativeType;
import com.appnext.core.callbacks.OnAdClosed;
import com.appnext.core.callbacks.OnAdError;
import com.appnext.core.callbacks.OnAdLoaded;
import com.appnext.core.callbacks.OnVideoEnded;
import com.eugene.hymnesetlouanges.config;
import com.eugene.hymnesetlouanges.t_chat;
import com.facebook.ads.Ad;
import com.facebook.ads.AdError;
import com.facebook.ads.NativeAdListener;
import com.facebook.ads.NativeAdViewAttributes;
import com.facebook.ads.NativeBannerAd;
import com.facebook.ads.NativeBannerAdView;
import com.facebook.ads.RewardedVideoAd;
import com.facebook.ads.RewardedVideoAdListener;
import com.google.ads.mediation.facebook.FacebookMediationAdapter;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdSize;
import com.google.android.gms.ads.AdView;
import com.google.android.gms.ads.FullScreenContentCallback;
import com.google.android.gms.ads.LoadAdError;
import com.google.android.gms.ads.OnUserEarnedRewardListener;
import com.google.android.gms.ads.rewarded.RewardItem;
import com.google.android.gms.ads.rewarded.RewardedAd;
import com.google.android.gms.ads.rewarded.RewardedAdLoadCallback;
import com.google.android.gms.cast.MediaError;
import com.google.android.gms.common.internal.ImagesContract;
import com.ironsource.mediationsdk.ISBannerSize;
import com.ironsource.mediationsdk.IronSource;
import com.ironsource.mediationsdk.IronSourceBannerLayout;
import com.startapp.sdk.ads.banner.Banner;
import com.startapp.sdk.ads.banner.BannerListener;
import com.startapp.sdk.adsbase.StartAppAd;
import com.startapp.sdk.adsbase.VideoListener;
import com.startapp.sdk.adsbase.adlisteners.AdDisplayListener;
import com.startapp.sdk.adsbase.adlisteners.AdEventListener;
import com.unity3d.ads.UnityAds;
import com.unity3d.services.banners.BannerErrorInfo;
import com.unity3d.services.banners.BannerView;
import com.unity3d.services.banners.UnityBannerSize;
import com.wortise.ads.banner.BannerAd;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Locale;
import java.util.Random;
public class profile extends Activity_ext_class implements com.eugene.hymnesetlouanges.a, View.OnClickListener, SharedPreferences.OnSharedPreferenceChangeListener, RewardedVideoAdListener, OnAdLoaded, OnAdClosed, OnVideoEnded, OnAdError, VideoListener, AdEventListener {
String A;
n0 A0;
m0 B0;
q0 C0;
config D;
y0 D0;
File E;
t0 E0;
ImageView F;
ImageView G;
ProgressDialog G0;
ImageView H;
ImageView I;
ImageView J;
ImageView K;
ImageView L;
ImageView M;
ImageView N;
ImageView O;
ProgressBar P;
ProgressBar Q;
ProgressBar R;
ProgressBar S;
ProgressBar T;
ProgressBar U;
ProgressDialog U0;
ProgressBar V;
private AlertDialog V0;
ProgressBar W;
private Dialog W0;
ProgressBar X;
TextView Y;
private com.eugene.hymnesetlouanges.r0 Y0;
LinearLayout Z;
o0 Z0;
LinearLayout a0;
AlertDialog.Builder a1;
LinearLayout b0;
View b1;
LinearLayout c0;
ListView c1;
LinearLayout d0;
SharedPreferences d1;
LinearLayout e0;
BannerAd e1;
LinearLayout f0;
LinearLayout g0;
LinearLayout h0;
TextView i0;
TextView j0;
long k;
TextView k0;
long l;
TextView l0;
int m;
TextView m0;
int n;
TextView n0;
int o;
TextView o0;
int p;
TextView p0;
boolean r0;
boolean s0;
boolean t0;
String u;
boolean u0;
String v;
String w;
boolean w0;
String x;
com.eugene.hymnesetlouanges.c x0;
String y;
Bundle y0;
String z;
Bitmap z0;
int q = -1;
int r = 0;
int s = 0;
int t = 0;
ArrayList B = new ArrayList();
ArrayList C = new ArrayList();
boolean q0 = false;
boolean v0 = false;
boolean F0 = false;
private ArrayList X0 = new ArrayList();
class a implements DialogInterface.OnShowListener {
final AlertDialog a;
a(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
class a0 implements View.OnClickListener {
a0() {
}
@Override
public void onClick(View view) {
Intent intent = new Intent(profile.this, (Class<?>) fotoperfil.class);
StringBuilder sb = new StringBuilder();
sb.append("file://");
profile profileVar = profile.this;
sb.append(profileVar.D.p0(profileVar, 1).getAbsolutePath());
intent.putExtra(ImagesContract.URL, sb.toString());
intent.putExtra("idusu_profile", profile.this.v);
profile.this.startActivityForResult(intent, 0);
}
}
class b implements DialogInterface.OnClickListener {
b() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
}
}
class b0 implements View.OnClickListener {
final String a;
b0(String str) {
this.a = str;
}
@Override
public void onClick(View view) {
File file = new File(profile.this.E, this.a);
Intent intent = new Intent(profile.this, (Class<?>) fotoperfil.class);
intent.putExtra(ImagesContract.URL, "file://" + file.getAbsolutePath());
intent.putExtra("idusu_profile", profile.this.v);
profile.this.startActivityForResult(intent, 0);
}
}
class c implements DialogInterface.OnShowListener {
final AlertDialog a;
c(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-2).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
class c0 implements DialogInterface.OnClickListener {
class a implements DialogInterface.OnClickListener {
a() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
new config.w0(config.f23m6 + "/srv/videochat_resp.php?idusu=" + profile.this.l + "&c=" + profile.this.u + "&idusu_pro=" + profile.this.v + "&cod_vchat=" + profile.this.y0.getString("cod_vchat") + "&resp=3", "Android Vinebre Software").execute(new String[0]);
profile profileVar = profile.this;
profileVar.b = true;
profileVar.finish();
}
}
class b implements DialogInterface.OnClickListener {
b() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
}
}
class c implements DialogInterface.OnShowListener {
c() {
}
@Override
public void onShow(DialogInterface dialogInterface) {
profile.this.V0.getButton(-1).setTextColor(Color.parseColor("#" + profile.this.a));
profile.this.V0.getButton(-2).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
class d implements DialogInterface.OnClickListener {
d() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
new config.w0(config.f23m6 + "/srv/videochat_resp.php?idusu=" + profile.this.l + "&c=" + profile.this.u + "&idusu_pro=" + profile.this.v + "&cod_vchat=" + profile.this.y0.getString("cod_vchat") + "&resp=4", "Android Vinebre Software").execute(new String[0]);
SharedPreferences.Editor edit = profile.this.d1.edit();
edit.putInt("videochat", 0);
edit.commit();
profile profileVar = profile.this;
profileVar.b = true;
profileVar.finish();
}
}
class e implements DialogInterface.OnClickListener {
e() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
}
}
class f implements DialogInterface.OnShowListener {
f() {
}
@Override
public void onShow(DialogInterface dialogInterface) {
profile.this.V0.getButton(-1).setTextColor(Color.parseColor("#" + profile.this.a));
profile.this.V0.getButton(-2).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
c0() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
if (i == 0) {
new config.w0(config.f23m6 + "/srv/videochat_resp.php?idusu=" + profile.this.l + "&c=" + profile.this.u + "&idusu_pro=" + profile.this.v + "&cod_vchat=" + profile.this.y0.getString("cod_vchat") + "&resp=1", "Android Vinebre Software").execute(new String[0]);
String str = config.f20j6 + "videochat." + config.f22l6 + "/comm.php?v=" + profile.this.D.r2 + "&info=" + profile.this.l + "-" + profile.this.u + "-" + profile.this.v + "-" + profile.this.y0.getString("cod_vchat");
Intent intent = new Intent(profile.this, (Class<?>) t_url.class);
intent.putExtra(ImagesContract.URL, str);
intent.putExtra("es_videochat", true);
profile.this.startActivityForResult(intent, 0);
return;
}
if (i != 1) {
try {
if (i == 2) {
profile.this.V0 = new AlertDialog.Builder(profile.this).setCancelable(true).setNegativeButton(profile.this.getString(2131886227), new b()).setPositiveButton(profile.this.getString(2131886114), new a()).setMessage(2131886211).create();
if (!profile.this.a.equals("")) {
profile.this.V0.setOnShowListener(new c());
}
profile.this.V0.show();
((TextView) profile.this.V0.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} else {
if (i != 3) {
return;
}
profile.this.V0 = new AlertDialog.Builder(profile.this).setCancelable(true).setNegativeButton(profile.this.getString(2131886227), new e()).setPositiveButton(profile.this.getString(2131886114), new d()).setMessage(2131886360).create();
if (!profile.this.a.equals("")) {
profile.this.V0.setOnShowListener(new f());
}
profile.this.V0.show();
((TextView) profile.this.V0.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
}
return;
} catch (Exception unused) {
return;
}
}
SharedPreferences.Editor edit = profile.this.d1.edit();
edit.putLong("f_ult_" + profile.this.v, System.currentTimeMillis());
edit.commit();
new config.w0(config.f23m6 + "/srv/videochat_resp.php?idusu=" + profile.this.l + "&c=" + profile.this.u + "&idusu_pro=" + profile.this.v + "&cod_vchat=" + profile.this.y0.getString("cod_vchat") + "&resp=2", "Android Vinebre Software").execute(new String[0]);
profile profileVar = profile.this;
profileVar.b = true;
profileVar.finish();
}
}
class d extends WebViewClient {
final AlertDialog a;
final ProgressBar b;
d(AlertDialog alertDialog, ProgressBar progressBar) {
this.a = alertDialog;
this.b = progressBar;
}
@Override
public void onPageFinished(WebView webView, String str) {
if (str.startsWith(config.f20j6 + "games-scores." + config.f22l6 + "")) {
this.b.setVisibility(8);
}
}
@Override
public boolean shouldOverrideUrlLoading(WebView webView, String str) {
String str2;
if (str.startsWith("http://jugar/") || str.startsWith("https://jugar/")) {
try {
str2 = Uri.parse(str).getQueryParameter(FacebookMediationAdapter.KEY_ID);
} catch (Exception unused) {
str2 = "";
}
if (!str2.equals("")) {
int i = 0;
boolean z = false;
while (true) {
com.eugene.hymnesetlouanges.m[] mVarArr = profile.this.D.Z1;
if (i >= mVarArr.length || z) {
break;
}
com.eugene.hymnesetlouanges.m mVar = mVarArr[i];
if (mVar.t == 1) {
if (mVar.e.contains("games." + config.f22l6 + "") && mVar.k1.equals(str2)) {
z = true;
i++;
}
}
z = false;
i++;
}
if (z) {
View view = new View(profile.this);
view.setTag(2131361812, Integer.valueOf(i - 1));
view.setTag(2131363305, Boolean.TRUE);
this.a.dismiss();
try {
profile.this.abrir_secc(view);
} catch (Exception unused2) {
}
}
}
}
return true;
}
}
class d0 implements NativeAdListener {
final NativeBannerAd a;
d0(NativeBannerAd nativeBannerAd) {
this.a = nativeBannerAd;
}
@Override
public void onAdClicked(Ad ad) {
}
@Override
public void onAdLoaded(Ad ad) {
NativeAdViewAttributes backgroundColor = new NativeAdViewAttributes().setTypeface(Typeface.MONOSPACE).setBackgroundColor(config.f17g6);
String str = profile.this.z;
if (str != null && !str.equals("")) {
int o = config.o(Color.parseColor("#" + profile.this.z), 0.2f, 0);
backgroundColor.setBackgroundColor(o);
if (config.K(o)) {
backgroundColor.setTitleTextColor(-16777216);
backgroundColor.setDescriptionTextColor(-16777216);
} else {
backgroundColor.setTitleTextColor(-1);
backgroundColor.setDescriptionTextColor(-1);
}
}
String str2 = profile.this.a;
if (str2 != null && !str2.equals("")) {
backgroundColor.setButtonColor(Color.parseColor("#" + profile.this.a));
if (config.J("#" + profile.this.a)) {
backgroundColor.setButtonTextColor(-16777216);
} else {
backgroundColor.setButtonTextColor(-1);
}
}
View render = NativeBannerAdView.render(profile.this, this.a, NativeBannerAdView.Type.HEIGHT_100, backgroundColor);
LinearLayout linearLayout = (LinearLayout) profile.this.findViewById(2131362679);
try {
if (profile.this.u0) {
linearLayout.setBackgroundColor(-16777216);
} else {
linearLayout.setBackgroundColor(-1);
}
int F = config.F(profile.this.getApplicationContext(), 1);
linearLayout.setPadding(F, F, F, F);
} catch (Exception e) {
e.printStackTrace();
}
linearLayout.setVisibility(0);
((LinearLayout) profile.this.findViewById(2131362680)).removeAllViews();
((LinearLayout) profile.this.findViewById(2131362680)).addView(render);
}
@Override
public void onError(Ad ad, AdError adError) {
}
@Override
public void onLoggingImpression(Ad ad) {
}
@Override
public void onMediaDownloaded(Ad ad) {
}
}
class e implements DialogInterface.OnShowListener {
final AlertDialog a;
e(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-2).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
class e0 implements BannerListener {
e0() {
}
public void onClick(View view) {
}
public void onFailedToReceiveAd(View view) {
}
public void onImpression(View view) {
}
public void onReceiveAd(View view) {
LinearLayout linearLayout = (LinearLayout) profile.this.findViewById(2131362679);
if (linearLayout == null) {
return;
}
linearLayout.setVisibility(0);
LinearLayout linearLayout2 = (LinearLayout) profile.this.findViewById(2131362680);
if (linearLayout2 == null) {
return;
}
linearLayout2.removeAllViews();
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-2, -2);
layoutParams.addRule(20);
linearLayout2.addView(view, layoutParams);
}
}
class f implements DialogInterface.OnClickListener {
f() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
}
}
class f0 implements BannerView.IListener {
f0() {
}
public void onBannerClick(BannerView bannerView) {
}
public void onBannerFailedToLoad(BannerView bannerView, BannerErrorInfo bannerErrorInfo) {
}
public void onBannerLeftApplication(BannerView bannerView) {
}
public void onBannerLoaded(BannerView bannerView) {
((LinearLayout) profile.this.findViewById(2131362679)).setVisibility(0);
((LinearLayout) profile.this.findViewById(2131362680)).removeAllViews();
((LinearLayout) profile.this.findViewById(2131362680)).addView(bannerView);
}
public void onBannerShown(BannerView bannerView) {
}
}
class g implements DialogInterface.OnShowListener {
final AlertDialog a;
g(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-2).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
class g0 implements BannerAd.Listener {
g0() {
}
public void onBannerClicked(BannerAd bannerAd) {
}
public void onBannerFailedToLoad(BannerAd bannerAd, com.wortise.ads.AdError adError) {
ArrayList arrayList;
Log.e("ara", "wortise banner failed:" + adError.toString());
if (profile.this.D.f4.equals("") || (arrayList = profile.this.D.f40b6) == null || arrayList.size() <= 0) {
return;
}
if (config.J("#" + profile.this.z)) {
((TextView) profile.this.findViewById(2131363413)).setTextColor(config.f13d6);
}
profile profileVar = profile.this;
profileVar.D.k(profileVar, 1, 2, -1, null);
}
public void onBannerImpression(BannerAd bannerAd) {
}
public void onBannerLoaded(BannerAd bannerAd) {
((LinearLayout) profile.this.findViewById(2131362680)).removeAllViews();
((LinearLayout) profile.this.findViewById(2131362680)).addView(profile.this.e1);
}
}
class h implements AdapterView.OnItemClickListener {
h() {
}
@Override
public void onItemClick(AdapterView adapterView, View view, int i, long j) {
com.eugene.hymnesetlouanges.s0 s0Var = (com.eugene.hymnesetlouanges.s0) profile.this.X0.get(i);
if (s0Var.c) {
o0 o0Var = profile.this.Z0;
if (o0Var == null || o0Var.getStatus() != AsyncTask.Status.RUNNING) {
profile.this.Z0 = new o0();
profile.this.Z0.execute(new String[0]);
return;
}
return;
}
if (s0Var.f.equals(profile.this.l + "")) {
return;
}
if (s0Var.f.equals(profile.this.v + "")) {
return;
}
Intent intent = new Intent(profile.this, (Class<?>) profile.class);
intent.putExtra(FacebookMediationAdapter.KEY_ID, s0Var.f);
intent.putExtra("privados", s0Var.h);
intent.putExtra("nombre", s0Var.e);
intent.putExtra("coments", s0Var.j);
intent.putExtra("fnac_d", s0Var.k);
intent.putExtra("fnac_m", s0Var.l);
intent.putExtra("fnac_a", s0Var.m);
intent.putExtra("sexo", s0Var.i);
intent.putExtra("vfoto", s0Var.g);
if (profile.this.y0.containsKey("desdepriv")) {
intent.putExtra("desdepriv", "1");
}
intent.putExtra("p_fnac", profile.this.y0.getInt("p_fnac"));
intent.putExtra("p_sexo", profile.this.y0.getInt("p_sexo"));
intent.putExtra("p_descr", profile.this.y0.getInt("p_descr"));
intent.putExtra("p_dist", profile.this.y0.getInt("p_dist"));
intent.putExtra("coments_chat", profile.this.y0.getBoolean("coments_chat"));
intent.putExtra("galeria", profile.this.y0.getBoolean("galeria"));
intent.putExtra("privados_chat", profile.this.y0.getBoolean("privados_chat"));
intent.putExtra("fotos_perfil", profile.this.m);
intent.putExtra("fotos_chat", profile.this.y0.getInt("fotos_chat"));
profile.this.startActivityForResult(intent, 0);
}
}
private class h0 {
public String a;
public String b;
public String c;
public String d;
public boolean e;
private h0() {
this.e = false;
}
}
class i implements DialogInterface.OnShowListener {
final AlertDialog a;
i(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
private class i0 {
public String a;
public String b;
public String c;
public String d;
public String e;
public boolean f;
private i0() {
this.f = false;
}
}
class j implements DialogInterface.OnClickListener {
class a implements DialogInterface.OnClickListener {
a() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
profile.this.U0.dismiss();
}
}
class b implements DialogInterface.OnShowListener {
b() {
}
@Override
public void onShow(DialogInterface dialogInterface) {
config.b1((ProgressBar) profile.this.U0.findViewById(R.id.progress), profile.this.a);
try {
profile.this.U0.getButton(-2).setTextColor(Color.parseColor("#" + profile.this.a));
} catch (Exception unused) {
}
}
}
j() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
new config.w0(config.f23m6 + "/srv/videochat_petic.php?idusu=" + profile.this.l + "&c=" + profile.this.u + "&idusu_pro=" + profile.this.v, "Android Vinebre Software").execute(new String[0]);
profile.this.U0 = new ProgressDialog(profile.this);
profile profileVar = profile.this;
profileVar.U0.setMessage(profileVar.getResources().getString(2131886429));
profile.this.U0.setIndeterminate(true);
profile profileVar2 = profile.this;
profileVar2.U0.setButton(-2, profileVar2.getResources().getString(2131886227), new a());
if (!profile.this.a.equals("")) {
profile.this.U0.setOnShowListener(new b());
}
try {
profile.this.U0.show();
((TextView) profile.this.U0.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} catch (Exception unused) {
}
}
}
private class j0 extends AsyncTask {
String a;
j0(Boolean bool) {
this.a = bool.booleanValue() ? "1" : "0";
}
@Override
public Byte doInBackground(String... strArr) {
HttpURLConnection httpURLConnection;
Throwable th;
HttpURLConnection httpURLConnection2 = null;
try {
try {
httpURLConnection = (HttpURLConnection) new URL(config.f23m6 + "/srv/favorito_usu.php?idusu=" + profile.this.l + "&c=" + profile.this.u + "&idusu_pro=" + profile.this.v + "&modo=" + this.a).openConnection();
} catch (Exception unused) {
}
} catch (Throwable th2) {
httpURLConnection = httpURLConnection2;
th = th2;
}
try {
httpURLConnection.setDoInput(true);
httpURLConnection.setConnectTimeout(10000);
httpURLConnection.setReadTimeout(10000);
httpURLConnection.setRequestProperty("User-Agent", "Android Vinebre Software");
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()));
while (true) {
String readLine = bufferedReader.readLine();
if (readLine == null) {
httpURLConnection.disconnect();
return (byte) 1;
}
StringBuilder sb = new StringBuilder();
sb.append(readLine);
sb.append("\n");
}
} catch (Exception unused2) {
httpURLConnection2 = httpURLConnection;
if (httpURLConnection2 != null) {
httpURLConnection2.disconnect();
}
return (byte) 2;
} catch (Throwable th3) {
th = th3;
if (httpURLConnection != null) {
httpURLConnection.disconnect();
}
throw th;
}
}
}
class k implements SearchManager.OnCancelListener {
k() {
}
@Override
public void onCancel() {
profile profileVar = profile.this;
profileVar.b = false;
profileVar.setResult(0);
}
}
private class k0 extends AsyncTask {
@Override
public String doInBackground(String... strArr) {
HttpURLConnection httpURLConnection;
Throwable th;
HttpURLConnection httpURLConnection2 = null;
try {
httpURLConnection = (HttpURLConnection) new URL(config.f23m6 + "/srv/coments_profile.php?idusu=" + profile.this.l + "&c=" + profile.this.u + "&idusu_pro=" + profile.this.v + "&idc=" + profile.this.x).openConnection();
try {
httpURLConnection.setDoInput(true);
httpURLConnection.setConnectTimeout(10000);
httpURLConnection.setReadTimeout(10000);
httpURLConnection.setRequestProperty("User-Agent", "Android Vinebre Software");
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()));
StringBuilder sb = new StringBuilder();
while (true) {
String readLine = bufferedReader.readLine();
if (readLine == null) {
String sb2 = sb.toString();
httpURLConnection.disconnect();
return sb2;
}
sb.append(readLine + "\n");
}
} catch (Exception unused) {
httpURLConnection2 = httpURLConnection;
if (httpURLConnection2 != null) {
httpURLConnection2.disconnect();
}
return "";
} catch (Throwable th2) {
th = th2;
if (httpURLConnection != null) {
httpURLConnection.disconnect();
}
throw th;
}
} catch (Exception unused2) {
} catch (Throwable th3) {
httpURLConnection = null;
th = th3;
}
}
@Override
public void onPostExecute(String str) {
try {
profile.this.findViewById(2131363052).setVisibility(8);
profile.this.findViewById(2131363053).setVisibility(8);
} catch (Exception unused) {
}
if (str.contains("ANDROID:OK DATOS:")) {
int indexOf = str.indexOf("DATOS:") + 6;
String[] split = str.substring(indexOf, str.indexOf(";", indexOf)).split(",");
int i = 0;
while (!split[i].equals("S") && !split[i].equals("N")) {
String[] split2 = split[i].split("-");
String replace = split2[1].replace("@X@", "-").replace("@Y@", ",");
profile profileVar = profile.this;
Boolean bool = Boolean.FALSE;
profileVar.l(bool, bool, split2[0], split2[3], split2[4], split2[2], replace, split2[5], split2[6], split2[7], split2[8], split2[9], split2[10], split2[11]);
i++;
}
n0 n0Var = profile.this.A0;
if (n0Var == null || n0Var.getStatus() != AsyncTask.Status.RUNNING) {
profile profileVar2 = profile.this;
profileVar2.A0 = new n0();
profile.this.A0.execute(new String[0]);
}
if (split[i].equals("S")) {
profile.this.findViewById(2131362362).setVisibility(0);
}
}
}
@Override
protected void onPreExecute() {
profile.this.findViewById(2131362362).setVisibility(8);
profile profileVar = profile.this;
if (profileVar.t0) {
profileVar.findViewById(2131363053).setVisibility(0);
} else {
profileVar.findViewById(2131363052).setVisibility(0);
}
}
private k0() {
}
}
class l implements DialogInterface.OnShowListener {
final AlertDialog a;
l(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + profile.this.a));
this.a.getButton(-2).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
private class l0 extends AsyncTask {
boolean a;
@Override
public String doInBackground(String... strArr) {
if (!this.a) {
return "";
}
HttpURLConnection httpURLConnection = null;
try {
StringBuilder sb = new StringBuilder();
sb.append(config.f23m6);
sb.append("/srv/fotos_profile.php?idusu=");
sb.append(profile.this.l);
sb.append("&c=");
sb.append(profile.this.u);
sb.append("&idusu_pro=");
sb.append(profile.this.v);
sb.append("&idf=");
profile profileVar = profile.this;
int i = profileVar.n;
sb.append(i > 0 ? ((h0) profileVar.B.get(i - 1)).a : 0);
HttpURLConnection httpURLConnection2 = (HttpURLConnection) new URL(sb.toString()).openConnection();
try {
httpURLConnection2.setDoInput(true);
httpURLConnection2.setConnectTimeout(10000);
httpURLConnection2.setReadTimeout(10000);
httpURLConnection2.setRequestProperty("User-Agent", "Android Vinebre Software");
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection2.getInputStream()));
StringBuilder sb2 = new StringBuilder();
while (true) {
String readLine = bufferedReader.readLine();
if (readLine == null) {
String sb3 = sb2.toString();
httpURLConnection2.disconnect();
return sb3;
}
sb2.append(readLine + "\n");
}
} catch (Exception unused) {
httpURLConnection = httpURLConnection2;
if (httpURLConnection != null) {
httpURLConnection.disconnect();
}
return "";
} catch (Throwable th) {
th = th;
httpURLConnection = httpURLConnection2;
if (httpURLConnection != null) {
httpURLConnection.disconnect();
}
throw th;
}
} catch (Exception unused2) {
} catch (Throwable th2) {
th = th2;
}
}
@Override
public void onPostExecute(String str) {
if (profile.this.findViewById(2131363055) != null) {
profile.this.findViewById(2131363055).setVisibility(4);
profile.this.findViewById(2131363054).setVisibility(4);
}
if (str.contains("ANDROID:OK DATOS:")) {
int indexOf = str.indexOf("DATOS:") + 6;
String[] split = str.substring(indexOf, str.indexOf(";", indexOf)).split(",");
int i = 0;
while (!split[i].equals("S") && !split[i].equals("N")) {
String[] split2 = split[i].split("-");
h0 h0Var = new h0();
h0Var.a = split2[0];
h0Var.c = split2[1];
h0Var.b = split2[2];
h0Var.d = split2[3];
profile.this.B.add(h0Var);
i++;
}
if (split[i].equals("N")) {
profile.this.r0 = true;
}
profile.this.p();
}
}
@Override
protected void onPreExecute() {
profile.this.findViewById(2131362363).setVisibility(4);
profile.this.findViewById(2131362365).setVisibility(4);
this.a = true;
int size = profile.this.B.size();
profile profileVar = profile.this;
if (size > profileVar.n) {
profileVar.p();
this.a = false;
} else if (profileVar.t0) {
profileVar.findViewById(2131363055).setVisibility(0);
} else {
profileVar.findViewById(2131363054).setVisibility(0);
}
}
private l0() {
}
}
class m implements DialogInterface.OnClickListener {
final View a;
final String b;
m(View view, String str) {
this.a = view;
this.b = str;
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
this.a.setVisibility(8);
int indexOfChild = ((LinearLayout) this.a.getParent()).indexOfChild(this.a);
SharedPreferences.Editor edit = profile.this.d1.edit();
while (indexOfChild < 4) {
String str = "idcom" + indexOfChild + "_" + profile.this.v;
SharedPreferences sharedPreferences = profile.this.d1;
StringBuilder sb = new StringBuilder();
sb.append("idcom");
int i2 = indexOfChild + 1;
sb.append(i2);
sb.append("_");
sb.append(profile.this.v);
edit.putString(str, sharedPreferences.getString(sb.toString(), ""));
edit.putString("com" + indexOfChild + "_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_" + profile.this.v, ""));
edit.putString("com" + indexOfChild + "_fcrea_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_fcrea_" + profile.this.v, ""));
edit.putString("com" + indexOfChild + "_idusucrea_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_idusucrea_" + profile.this.v, ""));
edit.putString("com" + indexOfChild + "_nombre_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_nombre_" + profile.this.v, ""));
edit.putString("com" + indexOfChild + "_vfoto_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_vfoto_" + profile.this.v, "0"));
edit.putString("com" + indexOfChild + "_privados_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_privados_" + profile.this.v, "0"));
edit.putString("com" + indexOfChild + "_fnacd_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_fnacd_" + profile.this.v, "0"));
edit.putString("com" + indexOfChild + "_fnacm_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_fnacm_" + profile.this.v, "0"));
edit.putString("com" + indexOfChild + "_fnaca_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_fnaca_" + profile.this.v, "0"));
edit.putString("com" + indexOfChild + "_sexo_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_sexo_" + profile.this.v, "0"));
edit.putString("com" + indexOfChild + "_coments_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_coments_" + profile.this.v, "0"));
indexOfChild = i2;
}
edit.commit();
profile.this.new s0(this.b).execute(new String[0]);
}
}
private class m0 extends AsyncTask {
ProgressBar a;
String b;
ImageView c;
Bitmap d;
@Override
public String doInBackground(String... strArr) {
ImageView imageView = this.c;
if (imageView == null) {
return "-1";
}
this.b = (String) imageView.getTag(2131362428);
try {
HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(config.f21k6 + "/srv/imgs/ususgal/" + profile.this.v + "_" + this.b + "_p.jpg").openConnection();
httpURLConnection.setDoInput(true);
httpURLConnection.setConnectTimeout(10000);
httpURLConnection.setReadTimeout(20000);
httpURLConnection.connect();
InputStream inputStream = httpURLConnection.getInputStream();
this.d = BitmapFactory.decodeStream(inputStream);
inputStream.close();
httpURLConnection.disconnect();
this.d.compress(Bitmap.CompressFormat.JPEG, 70, new FileOutputStream(new File(profile.this.E, "fperfilgal_" + this.b + ".jpg")));
return "1";
} catch (MalformedURLException | IOException | Exception | OutOfMemoryError unused) {
return "0";
}
}
@Override
public void onPostExecute(String str) {
if (this.c == null || str.equals("-1") || !((String) this.c.getTag(2131362428)).equals(this.b)) {
return;
}
ProgressBar progressBar = this.a;
if (progressBar != null) {
progressBar.setVisibility(8);
}
this.c.setTag(2131362430, "S");
if (str == "1") {
this.c.setImageBitmap(this.d);
}
profile.this.new m0().execute(new String[0]);
}
@Override
protected void onPreExecute() {
if (profile.this.G.getVisibility() == 0 && profile.this.G.getTag(2131362430).equals("N")) {
profile profileVar = profile.this;
this.c = profileVar.G;
this.a = profileVar.P;
return;
}
if (profile.this.H.getVisibility() == 0 && profile.this.H.getTag(2131362430).equals("N")) {
profile profileVar2 = profile.this;
this.c = profileVar2.H;
this.a = profileVar2.Q;
} else if (profile.this.I.getVisibility() == 0 && profile.this.I.getTag(2131362430).equals("N")) {
profile profileVar3 = profile.this;
this.c = profileVar3.I;
this.a = profileVar3.R;
} else if (profile.this.J.getVisibility() == 0 && profile.this.J.getTag(2131362430).equals("N")) {
profile profileVar4 = profile.this;
this.c = profileVar4.J;
this.a = profileVar4.S;
}
}
private m0() {
}
}
class n implements DialogInterface.OnShowListener {
final AlertDialog a;
n(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + profile.this.a));
this.a.getButton(-2).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
private class n0 extends AsyncTask {
String a;
String b;
Bitmap c;
@Override
public String doInBackground(String... strArr) {
if (this.a == null) {
return "-1";
}
try {
HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(config.f21k6 + "/srv/imgs/usus/" + this.a + "_1_p.jpg?v=" + this.b).openConnection();
httpURLConnection.setDoInput(true);
httpURLConnection.setConnectTimeout(10000);
httpURLConnection.setReadTimeout(20000);
httpURLConnection.connect();
InputStream inputStream = httpURLConnection.getInputStream();
this.c = BitmapFactory.decodeStream(inputStream);
inputStream.close();
httpURLConnection.disconnect();
this.c.compress(Bitmap.CompressFormat.JPEG, 70, new FileOutputStream(new File(profile.this.E, "fperfil_" + this.a + ".jpg")));
return "1";
} catch (MalformedURLException | IOException | Exception | OutOfMemoryError unused) {
return "0";
}
}
@Override
public void onPostExecute(String str) {
if (profile.this.Z == null || this.a == null || str.equals("-1")) {
return;
}
if (str == "1") {
SharedPreferences.Editor edit = profile.this.d1.edit();
edit.putString("fperfil_" + this.a, this.b);
edit.commit();
}
int childCount = profile.this.Z.getChildCount();
for (int i = 0; i < childCount; i++) {
String str2 = (String) profile.this.Z.getChildAt(i).findViewById(2131362567).getTag(2131362428);
if (str2 != null && str2.equals(this.a)) {
profile.this.Z.getChildAt(i).findViewById(2131362567).setTag(2131362430, this.b);
if (str == "1") {
((ImageView) profile.this.Z.getChildAt(i).findViewById(2131362567)).setImageBitmap(config.k0(this.c, 1));
}
}
}
profile.this.new n0().execute(new String[0]);
}
@Override
protected void onPreExecute() {
for (int i = 0; i < profile.this.Z.getChildCount(); i++) {
LinearLayout linearLayout = (LinearLayout) profile.this.Z.getChildAt(i);
String str = (String) linearLayout.findViewById(2131362567).getTag(2131362428);
String str2 = (String) linearLayout.findViewById(2131362567).getTag(2131362430);
this.b = str2;
if (str2 != null && !str2.equals("0")) {
if (!this.b.equals(profile.this.d1.getString("fperfil_" + str, "0"))) {
this.a = str;
return;
}
}
}
}
private n0() {
}
}
class o implements DialogInterface.OnClickListener {
o() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
Intent intent = new Intent("android.intent.action.PICK");
intent.setType("image/*");
profile.this.startActivityForResult(intent, 2);
}
}
private class o0 extends AsyncTask {
@Override
public String doInBackground(String... strArr) {
HttpURLConnection httpURLConnection;
Throwable th;
HttpURLConnection httpURLConnection2 = null;
try {
httpURLConnection = (HttpURLConnection) new URL(config.f23m6 + "/srv/likes.php?idusu=" + profile.this.l + "&c=" + profile.this.u + "&idusu_pro=" + profile.this.v + "&n=" + profile.this.r).openConnection();
try {
httpURLConnection.setDoInput(true);
httpURLConnection.setConnectTimeout(10000);
httpURLConnection.setReadTimeout(10000);
httpURLConnection.setRequestProperty("User-Agent", "Android Vinebre Software");
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()));
StringBuilder sb = new StringBuilder();
while (true) {
String readLine = bufferedReader.readLine();
if (readLine == null) {
String sb2 = sb.toString();
httpURLConnection.disconnect();
return sb2;
}
sb.append(readLine + "\n");
}
} catch (Exception unused) {
httpURLConnection2 = httpURLConnection;
if (httpURLConnection2 != null) {
httpURLConnection2.disconnect();
}
return "";
} catch (Throwable th2) {
th = th2;
if (httpURLConnection != null) {
httpURLConnection.disconnect();
}
throw th;
}
} catch (Exception unused2) {
} catch (Throwable th3) {
httpURLConnection = null;
th = th3;
}
}
@Override
public void onPostExecute(String str) {
boolean z;
try {
profile.this.b1.findViewById(2131362592).setVisibility(8);
} catch (Exception unused) {
}
if (str.contains("ANDROID:OK DATOS:")) {
int indexOf = str.indexOf("DATOS:") + 6;
String[] split = str.substring(indexOf, str.indexOf(";", indexOf)).split(",");
if (profile.this.X0.size() == 0) {
if (profile.this.v0) {
com.eugene.hymnesetlouanges.s0 s0Var = new com.eugene.hymnesetlouanges.s0();
s0Var.f = profile.this.l + "";
s0Var.e = profile.this.getResources().getString(2131886923);
profile profileVar = profile.this;
s0Var.b = profileVar.D.p0(profileVar, 1).exists();
profile.this.X0.add(s0Var);
}
} else if (((com.eugene.hymnesetlouanges.s0) profile.this.X0.get(profile.this.X0.size() - 1)).c) {
profile.this.X0.remove(profile.this.X0.size() - 1);
}
int i = 0;
while (!split[i].equals("S") && !split[i].equals("N")) {
String[] split2 = split[i].split("-");
int i2 = 0;
while (true) {
if (i2 >= profile.this.X0.size()) {
z = false;
break;
} else {
if (((com.eugene.hymnesetlouanges.s0) profile.this.X0.get(i2)).f.equals(split2[0])) {
z = true;
break;
}
i2++;
}
}
if (!z) {
com.eugene.hymnesetlouanges.s0 s0Var2 = new com.eugene.hymnesetlouanges.s0();
s0Var2.f = split2[0];
s0Var2.e = split2[1].replace("@X@", ",").replace("@Y@", "-");
String str2 = split2[2];
s0Var2.g = str2;
if (!str2.equals("0")) {
s0Var2.b = true;
}
s0Var2.h = split2[3];
s0Var2.k = split2[4];
s0Var2.l = split2[5];
s0Var2.m = split2[6];
s0Var2.i = split2[7];
s0Var2.j = split2[8];
s0Var2.d = split2[9].equals("1");
profile.this.X0.add(s0Var2);
profile.this.r++;
}
i++;
}
if (split[i].equals("S")) {
com.eugene.hymnesetlouanges.s0 s0Var3 = new com.eugene.hymnesetlouanges.s0();
s0Var3.c = true;
profile.this.X0.add(s0Var3);
}
profile.this.Y0.notifyDataSetChanged();
}
}
@Override
protected void onPreExecute() {
profile.this.b1.findViewById(2131362592).setVisibility(0);
}
private o0() {
}
}
class p implements DialogInterface.OnClickListener {
p() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
profile profileVar = profile.this;
if (profileVar.D.n1(profileVar, FacebookMediationAdapter.ERROR_NULL_CONTEXT)) {
return;
}
profile.this.k = System.currentTimeMillis();
profile profileVar2 = profile.this;
config configVar = profileVar2.D;
configVar.x0(profileVar2, configVar.m0(profileVar2, "fperfilgal_temp"));
}
}
private class p0 extends AsyncTask {
boolean a;
@Override
public String doInBackground(String... strArr) {
if (!this.a) {
return "";
}
HttpURLConnection httpURLConnection = null;
try {
StringBuilder sb = new StringBuilder();
sb.append(config.f23m6);
sb.append("/srv/videos_profile.php?idusu=");
sb.append(profile.this.l);
sb.append("&c=");
sb.append(profile.this.u);
sb.append("&idusu_pro=");
sb.append(profile.this.v);
sb.append("&idv=");
profile profileVar = profile.this;
int i = profileVar.o;
sb.append(i > 0 ? ((i0) profileVar.C.get(i - 1)).a : 0);
HttpURLConnection httpURLConnection2 = (HttpURLConnection) new URL(sb.toString()).openConnection();
try {
httpURLConnection2.setDoInput(true);
httpURLConnection2.setConnectTimeout(10000);
httpURLConnection2.setReadTimeout(10000);
httpURLConnection2.setRequestProperty("User-Agent", "Android Vinebre Software");
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection2.getInputStream()));
StringBuilder sb2 = new StringBuilder();
while (true) {
String readLine = bufferedReader.readLine();
if (readLine == null) {
String sb3 = sb2.toString();
httpURLConnection2.disconnect();
return sb3;
}
sb2.append(readLine + "\n");
}
} catch (Exception unused) {
httpURLConnection = httpURLConnection2;
if (httpURLConnection != null) {
httpURLConnection.disconnect();
}
return "";
} catch (Throwable th) {
th = th;
httpURLConnection = httpURLConnection2;
if (httpURLConnection != null) {
httpURLConnection.disconnect();
}
throw th;
}
} catch (Exception unused2) {
} catch (Throwable th2) {
th = th2;
}
}
@Override
public void onPostExecute(String str) {
if (profile.this.findViewById(2131363057) != null) {
profile.this.findViewById(2131363057).setVisibility(4);
profile.this.findViewById(2131363056).setVisibility(4);
}
if (str.contains("ANDROID:OK DATOS:")) {
int indexOf = str.indexOf("DATOS:") + 6;
String[] split = str.substring(indexOf, str.indexOf(";", indexOf)).split(",");
int i = 0;
while (!split[i].equals("S") && !split[i].equals("N")) {
String[] split2 = split[i].split("-");
i0 i0Var = new i0();
i0Var.a = split2[0];
i0Var.b = split2[1];
i0Var.d = split2[2];
i0Var.c = split2[3];
i0Var.e = split2[4];
profile.this.C.add(i0Var);
i++;
}
if (split[i].equals("N")) {
profile.this.s0 = true;
}
profile.this.u();
}
}
@Override
protected void onPreExecute() {
profile.this.findViewById(2131362364).setVisibility(4);
profile.this.findViewById(2131362366).setVisibility(4);
this.a = true;
int size = profile.this.C.size();
profile profileVar = profile.this;
if (size > profileVar.o) {
profileVar.u();
this.a = false;
} else if (profileVar.t0) {
profileVar.findViewById(2131363057).setVisibility(0);
} else {
profileVar.findViewById(2131363056).setVisibility(0);
}
}
private p0() {
}
}
class q implements DialogInterface.OnShowListener {
final AlertDialog a;
q(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + profile.this.a));
this.a.getButton(-2).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
private class q0 extends AsyncTask {
ProgressBar a;
String b;
ImageView c;
Bitmap d;
@Override
public String doInBackground(String... strArr) {
ImageView imageView = this.c;
if (imageView == null) {
return "-1";
}
this.b = (String) imageView.getTag(2131362428);
try {
HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(config.f21k6 + "/srv/imgs/videos_pro/v" + this.b + "_" + profile.this.v + "_th.jpg").openConnection();
httpURLConnection.setDoInput(true);
httpURLConnection.setConnectTimeout(10000);
httpURLConnection.setReadTimeout(20000);
httpURLConnection.connect();
InputStream inputStream = httpURLConnection.getInputStream();
this.d = BitmapFactory.decodeStream(inputStream);
inputStream.close();
httpURLConnection.disconnect();
this.d.compress(Bitmap.CompressFormat.JPEG, 70, new FileOutputStream(new File(profile.this.E, "fperfilgalv_" + this.b + ".jpg")));
return "1";
} catch (MalformedURLException | IOException | Exception | OutOfMemoryError unused) {
return "0";
}
}
@Override
public void onPostExecute(String str) {
if (this.c == null || str.equals("-1") || !((String) this.c.getTag(2131362428)).equals(this.b)) {
return;
}
ProgressBar progressBar = this.a;
if (progressBar != null) {
progressBar.setVisibility(8);
}
this.c.setTag(2131362430, "S");
if (str == "1") {
Bitmap c1 = config.c1(this.d, BitmapFactory.decodeResource(profile.this.getResources(), 2131231686));
this.d = c1;
this.c.setImageBitmap(c1);
}
profile.this.new q0().execute(new String[0]);
}
@Override
protected void onPreExecute() {
if (profile.this.K.getVisibility() == 0 && profile.this.K.getTag(2131362430).equals("N")) {
profile profileVar = profile.this;
this.c = profileVar.K;
this.a = profileVar.T;
return;
}
if (profile.this.L.getVisibility() == 0 && profile.this.L.getTag(2131362430).equals("N")) {
profile profileVar2 = profile.this;
this.c = profileVar2.L;
this.a = profileVar2.U;
} else if (profile.this.M.getVisibility() == 0 && profile.this.M.getTag(2131362430).equals("N")) {
profile profileVar3 = profile.this;
this.c = profileVar3.M;
this.a = profileVar3.V;
} else if (profile.this.N.getVisibility() == 0 && profile.this.N.getTag(2131362430).equals("N")) {
profile profileVar4 = profile.this;
this.c = profileVar4.N;
this.a = profileVar4.W;
}
}
private q0() {
}
}
class r implements DialogInterface.OnShowListener {
final AlertDialog a;
r(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + profile.this.a));
this.a.getButton(-2).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
private class r0 extends AsyncTask {
String a;
@Override
public String doInBackground(String... strArr) {
Throwable th;
HttpURLConnection httpURLConnection;
String string = profile.this.d1.getString("idcom0_" + profile.this.v, "");
StringBuilder sb = new StringBuilder();
sb.append(string);
sb.append(",");
sb.append(profile.this.d1.getString("idcom1_" + profile.this.v, ""));
String sb2 = sb.toString();
StringBuilder sb3 = new StringBuilder();
sb3.append(sb2);
sb3.append(",");
sb3.append(profile.this.d1.getString("idcom2_" + profile.this.v, ""));
String sb4 = sb3.toString();
StringBuilder sb5 = new StringBuilder();
sb5.append(sb4);
sb5.append(",");
sb5.append(profile.this.d1.getString("idcom3_" + profile.this.v, ""));
String sb6 = sb5.toString();
HttpURLConnection httpURLConnection2 = null;
try {
StringBuilder sb7 = new StringBuilder();
sb7.append(config.f23m6);
sb7.append("/srv/obtener_profile.php?idusu=");
sb7.append(profile.this.l);
sb7.append("&c=");
sb7.append(profile.this.u);
sb7.append("&idusu_pro=");
sb7.append(profile.this.v);
sb7.append("&vdescr=");
sb7.append(profile.this.d1.getString("vdescr_" + profile.this.v, "0"));
sb7.append("&idcoments=");
sb7.append(sb6);
sb7.append("&condist=");
sb7.append(this.a);
httpURLConnection = (HttpURLConnection) new URL(sb7.toString()).openConnection();
try {
httpURLConnection.setDoInput(true);
httpURLConnection.setConnectTimeout(10000);
httpURLConnection.setReadTimeout(10000);
httpURLConnection.setRequestProperty("User-Agent", "Android Vinebre Software");
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()));
StringBuilder sb8 = new StringBuilder();
while (true) {
String readLine = bufferedReader.readLine();
if (readLine == null) {
String sb9 = sb8.toString();
httpURLConnection.disconnect();
return sb9;
}
sb8.append(readLine + "\n");
}
} catch (Exception unused) {
httpURLConnection2 = httpURLConnection;
if (httpURLConnection2 != null) {
httpURLConnection2.disconnect();
}
return "";
} catch (Throwable th2) {
th = th2;
if (httpURLConnection != null) {
httpURLConnection.disconnect();
}
throw th;
}
} catch (Exception unused2) {
} catch (Throwable th3) {
th = th3;
httpURLConnection = null;
}
}
@Override
public void onPostExecute(String str) {
String str2;
String str3;
int i;
String str4;
String str5;
String str6;
String str7;
String str8;
int i2;
String str9;
String str10;
String str11;
String str12;
String str13;
String str14;
String str15;
String str16;
String str17;
String str18;
String str19;
String str20;
String str21;
String str22;
String str23;
boolean z;
String str24;
String str25;
String str26;
try {
profile.this.findViewById(2131363055).setVisibility(4);
profile.this.findViewById(2131363054).setVisibility(4);
profile.this.findViewById(2131363057).setVisibility(4);
profile.this.findViewById(2131363056).setVisibility(4);
profile.this.findViewById(2131363053).setVisibility(8);
profile.this.findViewById(2131363052).setVisibility(8);
} catch (Exception unused) {
}
if (str.contains("ANDROID:OK DATOSUSU:")) {
SharedPreferences.Editor edit = profile.this.d1.edit();
int indexOf = str.indexOf("DATOSUSU:") + 9;
String str27 = ";";
int indexOf2 = str.indexOf(";", indexOf);
if (this.a.equals("1")) {
String substring = str.substring(indexOf, indexOf2);
if (substring.equals("-1")) {
profile.this.y = null;
} else {
profile.this.y = substring;
}
profile.this.r();
}
int i3 = 1;
int i4 = indexOf2 + 1;
int indexOf3 = str.indexOf(";", i4);
String str28 = ",";
String str29 = "";
if (profile.this.y0.getInt("p_descr") > 0) {
String substring2 = str.substring(i4, indexOf3);
if (!substring2.equals("")) {
int indexOf4 = substring2.indexOf(",");
String substring3 = substring2.substring(0, indexOf4);
String replace = substring2.substring(indexOf4 + 1).replace("@X@", ",");
edit.putString("vdescr_" + profile.this.v, substring3);
edit.putString("descr_" + profile.this.v, replace);
edit.commit();
profile.this.Y.setText(replace);
profile.this.Y.setVisibility(0);
}
}
profile profileVar = profile.this;
String str30 = "0";
if (profileVar.m == 0 || profileVar.w.equals("0")) {
profile.this.v();
}
int i7 = indexOf3 + 1;
int indexOf5 = str.indexOf(";", i7);
String str31 = "S";
String str32 = "_";
if (profile.this.y0.getBoolean("galeria")) {
String[] split = str.substring(i7, indexOf5).split(",");
int i8 = 0;
for (int i9 = 4; i8 < i9; i9 = 4) {
edit.remove("idf" + i8 + "_" + profile.this.v);
edit.remove("f" + i8 + "_fcrea_" + profile.this.v);
edit.remove("f" + i8 + "_nlikes_" + profile.this.v);
edit.remove("f" + i8 + "_liked_" + profile.this.v);
i8++;
}
int i10 = 0;
while (!split[i10].equals("S") && !split[i10].equals("N")) {
String[] split2 = split[i10].split("-");
String str33 = str29;
edit.putString("idf" + i10 + "_" + profile.this.v, split2[0]);
edit.putString("f" + i10 + "_fcrea_" + profile.this.v, split2[1]);
edit.putString("f" + i10 + "_nlikes_" + profile.this.v, split2[2]);
edit.putString("f" + i10 + "_liked_" + profile.this.v, split2[3]);
h0 h0Var = new h0();
h0Var.a = split2[0];
h0Var.c = split2[1];
h0Var.b = split2[2];
h0Var.d = split2[3];
profile.this.B.add(h0Var);
i10++;
str30 = str30;
str29 = str33;
}
str2 = str29;
str3 = str30;
edit.commit();
profile.this.o();
profile profileVar2 = profile.this;
profileVar2.G.setOnClickListener(profileVar2);
profile profileVar3 = profile.this;
profileVar3.H.setOnClickListener(profileVar3);
profile profileVar4 = profile.this;
profileVar4.I.setOnClickListener(profileVar4);
profile profileVar5 = profile.this;
profileVar5.J.setOnClickListener(profileVar5);
profile profileVar6 = profile.this;
profileVar6.B0 = new m0();
profile.this.B0.execute(new String[0]);
if (split[i10].equals("S")) {
profile.this.findViewById(2131362363).setVisibility(0);
i3 = 1;
} else {
i3 = 1;
profile.this.r0 = true;
}
} else {
str2 = "";
str3 = "0";
}
int i11 = indexOf5 + i3;
int indexOf6 = str.indexOf(";", i11);
if (profile.this.y0.getString("coments").equals("1") && profile.this.y0.getBoolean("coments_chat")) {
String[] split3 = str.substring(i11, indexOf6).split(",");
int i12 = 0;
while (true) {
str9 = "_fnacm_";
str10 = "_fnacd_";
str11 = "_privados_";
str12 = "_vfoto_";
str13 = "_idusucrea_";
str4 = str27;
i = indexOf6;
str14 = "_copia";
str6 = str28;
str15 = str31;
if (i12 >= 4) {
break;
}
StringBuilder sb = new StringBuilder();
sb.append("idcom");
sb.append(i12);
sb.append(str32);
String[] strArr = split3;
sb.append(profile.this.v);
sb.append("_copia");
String str34 = str2;
edit.putString(sb.toString(), profile.this.d1.getString("idcom" + i12 + str32 + profile.this.v, str34));
String str35 = "com" + i12 + str32 + profile.this.v + "_copia";
SharedPreferences sharedPreferences = profile.this.d1;
StringBuilder sb2 = new StringBuilder();
sb2.append("com");
sb2.append(i12);
sb2.append(str32);
String str36 = str32;
sb2.append(profile.this.v);
edit.putString(str35, sharedPreferences.getString(sb2.toString(), str34));
edit.putString("com" + i12 + "_fcrea_" + profile.this.v + "_copia", profile.this.d1.getString("com" + i12 + "_fcrea_" + profile.this.v, str34));
edit.putString("com" + i12 + "_idusucrea_" + profile.this.v + "_copia", profile.this.d1.getString("com" + i12 + "_idusucrea_" + profile.this.v, str34));
edit.putString("com" + i12 + "_nombre_" + profile.this.v + "_copia", profile.this.d1.getString("com" + i12 + "_nombre_" + profile.this.v, str34));
String str37 = str3;
edit.putString("com" + i12 + "_vfoto_" + profile.this.v + "_copia", profile.this.d1.getString("com" + i12 + "_vfoto_" + profile.this.v, str37));
edit.putString("com" + i12 + "_privados_" + profile.this.v + "_copia", profile.this.d1.getString("com" + i12 + "_privados_" + profile.this.v, str37));
edit.putString("com" + i12 + "_fnacd_" + profile.this.v + "_copia", profile.this.d1.getString("com" + i12 + "_fnacd_" + profile.this.v, str37));
edit.putString("com" + i12 + "_fnacm_" + profile.this.v + "_copia", profile.this.d1.getString("com" + i12 + "_fnacm_" + profile.this.v, str37));
edit.putString("com" + i12 + "_fnaca_" + profile.this.v + "_copia", profile.this.d1.getString("com" + i12 + "_fnaca_" + profile.this.v, str37));
edit.putString("com" + i12 + "_sexo_" + profile.this.v + "_copia", profile.this.d1.getString("com" + i12 + "_sexo_" + profile.this.v, str37));
edit.putString("com" + i12 + "_coments_" + profile.this.v + "_copia", profile.this.d1.getString("com" + i12 + "_coments_" + profile.this.v, str37));
edit.remove("idcom" + i12 + str36 + profile.this.v);
edit.remove("com" + i12 + str36 + profile.this.v);
edit.remove("com" + i12 + "_fcrea_" + profile.this.v);
edit.remove("com" + i12 + "_idusucrea_" + profile.this.v);
edit.remove("com" + i12 + "_nombre_" + profile.this.v);
edit.remove("com" + i12 + "_vfoto_" + profile.this.v);
edit.remove("com" + i12 + "_privados_" + profile.this.v);
edit.remove("com" + i12 + "_fnacd_" + profile.this.v);
edit.remove("com" + i12 + "_fnacm_" + profile.this.v);
edit.remove("com" + i12 + "_fnaca_" + profile.this.v);
edit.remove("com" + i12 + "_sexo_" + profile.this.v);
edit.remove("com" + i12 + "_coments_" + profile.this.v);
i12++;
str32 = str36;
str2 = str34;
str27 = str4;
indexOf6 = i;
str28 = str6;
split3 = strArr;
str3 = str37;
str31 = str15;
}
String[] strArr2 = split3;
String str38 = "idcom";
String str39 = str32;
String str40 = str3;
String str41 = str2;
edit.commit();
int i13 = 0;
while (true) {
String str42 = str40;
String str43 = str15;
if (strArr2[i13].equals(str43)) {
str5 = str39;
str15 = str43;
break;
}
str15 = str43;
if (strArr2[i13].equals("N")) {
str5 = str39;
break;
}
String[] split4 = strArr2[i13].split("-");
String str44 = str14;
if (split4.length > 1) {
edit.putString(str38 + i13 + str39 + profile.this.v, split4[0]);
edit.putString("com" + i13 + str39 + profile.this.v, split4[1].replace("@X@", "-").replace("@Y@", str6));
edit.putString("com" + i13 + "_fcrea_" + profile.this.v, split4[2]);
edit.putString("com" + i13 + str13 + profile.this.v, split4[3]);
edit.putString("com" + i13 + "_nombre_" + profile.this.v, split4[4]);
edit.putString("com" + i13 + str12 + profile.this.v, split4[5]);
edit.putString("com" + i13 + str11 + profile.this.v, split4[6]);
edit.putString("com" + i13 + str10 + profile.this.v, split4[7]);
edit.putString("com" + i13 + str9 + profile.this.v, split4[8]);
edit.putString("com" + i13 + "_fnaca_" + profile.this.v, split4[9]);
edit.putString("com" + i13 + "_sexo_" + profile.this.v, split4[10]);
edit.putString("com" + i13 + "_coments_" + profile.this.v, split4[11]);
str16 = str38;
str17 = str9;
str18 = str39;
str19 = str10;
str20 = str44;
str21 = str11;
str22 = str41;
str26 = str13;
str25 = str12;
str24 = str42;
} else {
String str45 = str38;
String str46 = str39;
String str47 = str6;
int i14 = 0;
while (true) {
if (i14 >= 5) {
str6 = str47;
str16 = str45;
str17 = str9;
str18 = str46;
str19 = str10;
str20 = str44;
str21 = str11;
str22 = str41;
str23 = str12;
z = false;
break;
}
SharedPreferences sharedPreferences2 = profile.this.d1;
StringBuilder sb3 = new StringBuilder();
str6 = str47;
str16 = str45;
sb3.append(str16);
sb3.append(i14);
str17 = str9;
str18 = str46;
sb3.append(str18);
str19 = str10;
sb3.append(profile.this.v);
str20 = str44;
sb3.append(str20);
str21 = str11;
str22 = str41;
str23 = str12;
if (sharedPreferences2.getString(sb3.toString(), str22).equals(split4[0])) {
z = true;
break;
}
i14++;
str12 = str23;
str41 = str22;
str11 = str21;
str44 = str20;
str10 = str19;
str46 = str18;
str9 = str17;
str45 = str16;
str47 = str6;
}
if (z) {
edit.putString(str16 + i13 + str18 + profile.this.v, profile.this.d1.getString(str16 + i14 + str18 + profile.this.v + str20, str22));
StringBuilder sb4 = new StringBuilder();
sb4.append("com");
sb4.append(i13);
sb4.append(str18);
sb4.append(profile.this.v);
edit.putString(sb4.toString(), profile.this.d1.getString("com" + i14 + str18 + profile.this.v + str20, str22));
StringBuilder sb5 = new StringBuilder();
sb5.append("com");
sb5.append(i13);
sb5.append("_fcrea_");
sb5.append(profile.this.v);
edit.putString(sb5.toString(), profile.this.d1.getString("com" + i14 + "_fcrea_" + profile.this.v + str20, str22));
StringBuilder sb6 = new StringBuilder();
sb6.append("com");
sb6.append(i13);
sb6.append(str13);
sb6.append(profile.this.v);
edit.putString(sb6.toString(), profile.this.d1.getString("com" + i14 + str13 + profile.this.v + str20, str22));
StringBuilder sb7 = new StringBuilder();
sb7.append("com");
sb7.append(i13);
sb7.append("_nombre_");
sb7.append(profile.this.v);
edit.putString(sb7.toString(), profile.this.d1.getString("com" + i14 + "_nombre_" + profile.this.v + str20, str22));
StringBuilder sb8 = new StringBuilder();
sb8.append("com");
sb8.append(i13);
String str48 = str23;
sb8.append(str48);
sb8.append(profile.this.v);
String sb9 = sb8.toString();
SharedPreferences sharedPreferences3 = profile.this.d1;
StringBuilder sb10 = new StringBuilder();
sb10.append("com");
sb10.append(i14);
sb10.append(str48);
str26 = str13;
sb10.append(profile.this.v);
sb10.append(str20);
String sb11 = sb10.toString();
str24 = str42;
edit.putString(sb9, sharedPreferences3.getString(sb11, str24));
StringBuilder sb12 = new StringBuilder();
sb12.append("com");
sb12.append(i13);
String str49 = str21;
sb12.append(str49);
sb12.append(profile.this.v);
str25 = str48;
edit.putString(sb12.toString(), profile.this.d1.getString("com" + i14 + str49 + profile.this.v + str20, str24));
StringBuilder sb13 = new StringBuilder();
sb13.append("com");
sb13.append(i13);
String str50 = str19;
sb13.append(str50);
sb13.append(profile.this.v);
edit.putString(sb13.toString(), profile.this.d1.getString("com" + i14 + str50 + profile.this.v + str20, str24));
StringBuilder sb14 = new StringBuilder();
sb14.append("com");
sb14.append(i13);
String str51 = str17;
sb14.append(str51);
sb14.append(profile.this.v);
edit.putString(sb14.toString(), profile.this.d1.getString("com" + i14 + str51 + profile.this.v + str20, str24));
StringBuilder sb15 = new StringBuilder();
sb15.append("com");
sb15.append(i13);
sb15.append("_fnaca_");
sb15.append(profile.this.v);
edit.putString(sb15.toString(), profile.this.d1.getString("com" + i14 + "_fnaca_" + profile.this.v + str20, str24));
StringBuilder sb16 = new StringBuilder();
sb16.append("com");
sb16.append(i13);
sb16.append("_sexo_");
sb16.append(profile.this.v);
edit.putString(sb16.toString(), profile.this.d1.getString("com" + i14 + "_sexo_" + profile.this.v + str20, str24));
StringBuilder sb17 = new StringBuilder();
sb17.append("com");
sb17.append(i13);
sb17.append("_coments_");
sb17.append(profile.this.v);
edit.putString(sb17.toString(), profile.this.d1.getString("com" + i14 + "_coments_" + profile.this.v + str20, str24));
} else {
str24 = str42;
str25 = str23;
str26 = str13;
}
}
i13++;
str39 = str18;
str14 = str20;
str38 = str16;
str13 = str26;
str9 = str17;
str10 = str19;
str41 = str22;
str40 = str24;
str12 = str25;
str11 = str21;
}
str8 = str41;
edit.commit();
profile.this.m(false);
new n0().execute(new String[0]);
str7 = str15;
if (strArr2[i13].equals(str7)) {
profile.this.findViewById(2131362362).setVisibility(0);
}
} else {
i = indexOf6;
str4 = ";";
str5 = "_";
str6 = ",";
str7 = "S";
str8 = str2;
}
int i15 = i + 1;
String str52 = str4;
int indexOf7 = str.indexOf(str52, i15);
profile.this.h(str.substring(i15, indexOf7).equals("1"));
int i16 = indexOf7 + 1;
int indexOf8 = str.indexOf(str52, i16);
if (!profile.this.v.equals(profile.this.l + str8) && str.substring(i16, indexOf8).equals("1")) {
profile.this.findViewById(2131362495).setVisibility(0);
}
int i17 = indexOf8 + 1;
int indexOf9 = str.indexOf(str52, i17);
try {
profile.this.s = Integer.parseInt(str.substring(i17, indexOf9));
if (profile.this.v.equals(profile.this.l + str8)) {
((TextView) profile.this.findViewById(2131363481)).setText(profile.this.s + str8);
profile.this.findViewById(2131363481).setVisibility(0);
} else {
((TextView) profile.this.findViewById(2131363480)).setText(profile.this.s + str8);
profile.this.findViewById(2131363480).setVisibility(0);
}
} catch (Exception unused2) {
}
int i18 = indexOf9 + 1;
int indexOf10 = str.indexOf(str52, i18);
if (profile.this.D.l2) {
String[] split5 = str.substring(i18, indexOf10).split(str6);
for (int i19 = 0; i19 < 4; i19++) {
edit.remove("idv" + i19 + str5 + profile.this.v);
edit.remove("v" + i19 + "_formato_" + profile.this.v);
edit.remove("v" + i19 + "_fcrea_" + profile.this.v);
edit.remove("v" + i19 + "_nlikes_" + profile.this.v);
edit.remove("v" + i19 + "_liked_" + profile.this.v);
}
int i20 = 0;
while (!split5[i20].equals(str7) && !split5[i20].equals("N")) {
String[] split6 = split5[i20].split("-");
edit.putString("idv" + i20 + str5 + profile.this.v, split6[0]);
edit.putString("v" + i20 + "_formato_" + profile.this.v, split6[1]);
edit.putString("v" + i20 + "_fcrea_" + profile.this.v, split6[2]);
edit.putString("v" + i20 + "_nlikes_" + profile.this.v, split6[3]);
edit.putString("v" + i20 + "_liked_" + profile.this.v, split6[4]);
i0 i0Var = new i0();
i0Var.a = split6[0];
i0Var.b = split6[1];
i0Var.d = split6[2];
i0Var.c = split6[3];
i0Var.e = split6[4];
profile.this.C.add(i0Var);
i20++;
}
edit.commit();
profile.this.t();
profile profileVar7 = profile.this;
profileVar7.K.setOnClickListener(profileVar7);
profile profileVar8 = profile.this;
profileVar8.L.setOnClickListener(profileVar8);
profile profileVar9 = profile.this;
profileVar9.M.setOnClickListener(profileVar9);
profile profileVar10 = profile.this;
profileVar10.N.setOnClickListener(profileVar10);
profile profileVar11 = profile.this;
profileVar11.C0 = new q0();
profile.this.C0.execute(new String[0]);
if (split5[i20].equals(str7)) {
profile.this.findViewById(2131362364).setVisibility(0);
i2 = 1;
} else {
i2 = 1;
profile.this.s0 = true;
}
profile.this.t = Integer.parseInt(split5[i20 + i2]);
}
}
}
@Override
protected void onPreExecute() {
this.a = "0";
if (profile.this.y0.getInt("p_dist") > 0 && !profile.this.y0.containsKey("dist")) {
this.a = "1";
}
profile profileVar = profile.this;
if (profileVar.t0) {
profileVar.findViewById(2131363055).setVisibility(0);
profile.this.findViewById(2131363057).setVisibility(0);
profile.this.findViewById(2131363053).setVisibility(0);
} else {
profileVar.findViewById(2131363054).setVisibility(0);
profile.this.findViewById(2131363056).setVisibility(0);
profile.this.findViewById(2131363052).setVisibility(0);
}
}
private r0() {
}
}
class s implements DialogInterface.OnClickListener {
s() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
Intent intent = new Intent("android.intent.action.PICK");
intent.setType("video/*");
profile.this.startActivityForResult(intent, 4);
}
}
private class s0 extends AsyncTask {
String a;
s0(String str) {
this.a = str;
}
@Override
public Byte doInBackground(String... strArr) {
HttpURLConnection httpURLConnection;
Throwable th;
HttpURLConnection httpURLConnection2 = null;
try {
try {
httpURLConnection = (HttpURLConnection) new URL(config.f23m6 + "/srv/eliminar_coment.php?idusu=" + profile.this.l + "&c=" + profile.this.u + "&idc=" + this.a).openConnection();
} catch (Throwable th2) {
httpURLConnection = null;
th = th2;
}
} catch (Exception unused) {
}
try {
httpURLConnection.setDoInput(true);
httpURLConnection.setConnectTimeout(10000);
httpURLConnection.setReadTimeout(10000);
httpURLConnection.setRequestProperty("User-Agent", "Android Vinebre Software");
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()));
while (true) {
String readLine = bufferedReader.readLine();
if (readLine == null) {
httpURLConnection.disconnect();
return (byte) 1;
}
StringBuilder sb = new StringBuilder();
sb.append(readLine);
sb.append("\n");
}
} catch (Exception unused2) {
httpURLConnection2 = httpURLConnection;
if (httpURLConnection2 != null) {
httpURLConnection2.disconnect();
}
return (byte) 2;
} catch (Throwable th3) {
th = th3;
if (httpURLConnection != null) {
httpURLConnection.disconnect();
}
throw th;
}
}
}
class t implements DialogInterface.OnClickListener {
t() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
profile profileVar = profile.this;
if (profileVar.D.n1(profileVar, FacebookMediationAdapter.ERROR_CREATE_NATIVE_AD_FROM_BID_PAYLOAD)) {
return;
}
profile profileVar2 = profile.this;
config configVar = profileVar2.D;
configVar.y0(profileVar2, configVar.m0(profileVar2, "dt_foto98_temp.mp4"));
}
}
private class t0 extends AsyncTask {
String a;
class a implements Runnable {
a() {
}
@Override
public void run() {
try {
((ScrollView) profile.this.findViewById(2131363181)).smoothScrollTo(0, profile.this.findViewById(2131363440).getTop());
} catch (Exception unused) {
}
}
}
class b implements DialogInterface.OnShowListener {
final AlertDialog a;
b(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
class c implements DialogInterface.OnShowListener {
final AlertDialog a;
c(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
public t0(String str) {
this.a = str;
}
@Override
public String doInBackground(String... strArr) {
try {
yf.b bVar = new yf.b();
yf.c.h(bVar, 10000);
yf.c.i(bVar, 20000);
rf.h hVar = new rf.h(bVar);
bf.e eVar = new bf.e(config.f23m6 + "/srv/enviar_coment.php?idusu=" + profile.this.l + "&c=" + profile.this.u + "&idusu_pro=" + profile.this.v);
nf.g gVar = new nf.g(nf.d.b);
gVar.a("m", new of.f(URLEncoder.encode(this.a, "UTF-8")));
eVar.a(gVar);
eVar.x("User-Agent", "Android Vinebre Software");
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(hVar.a(eVar).c().j(), "UTF-8"));
StringBuilder sb = new StringBuilder();
while (true) {
String readLine = bufferedReader.readLine();
if (readLine == null) {
return sb.toString();
}
sb.append(readLine);
}
} catch (Exception unused) {
return "ANDROID:KO";
}
}
@Override
public void onPostExecute(String str) {
AlertDialog.Builder builder = new AlertDialog.Builder(profile.this);
try {
profile.this.X.setVisibility(8);
profile profileVar = profile.this;
if (profileVar.t0) {
((TextView) profileVar.findViewById(2131362269)).setTextColor(-16777216);
} else {
((TextView) profileVar.findViewById(2131362269)).setTextColor(-1);
}
} catch (Exception unused) {
}
try {
if (str.indexOf("ANDROID:OK ID:") != -1) {
int indexOf = str.indexOf("ANDROID:OK ID:") + 14;
String substring = str.substring(indexOf, str.indexOf("-", indexOf));
((EditText) profile.this.findViewById(2131362269)).setText("");
String w = config.w(new SimpleDateFormat("ddMMyyHHmm").format(new Date()));
profile.this.l(Boolean.FALSE, Boolean.TRUE, substring, profile.this.l + "", profile.this.getResources().getString(2131886923), w, this.a, "0", "", "", "", "", "", "");
SharedPreferences.Editor edit = profile.this.d1.edit();
for (int i = 3; i > 0; i += -1) {
String str2 = "idcom" + i + "_" + profile.this.v;
SharedPreferences sharedPreferences = profile.this.d1;
StringBuilder sb = new StringBuilder();
sb.append("idcom");
int i2 = i - 1;
sb.append(i2);
sb.append("_");
sb.append(profile.this.v);
edit.putString(str2, sharedPreferences.getString(sb.toString(), ""));
edit.putString("com" + i + "_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_" + profile.this.v, ""));
edit.putString("com" + i + "_fcrea_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_fcrea_" + profile.this.v, ""));
edit.putString("com" + i + "_idusucrea_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_idusucrea_" + profile.this.v, ""));
edit.putString("com" + i + "_nombre_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_nombre_" + profile.this.v, ""));
edit.putString("com" + i + "_vfoto_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_vfoto_" + profile.this.v, "0"));
edit.putString("com" + i + "_privados_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_privados_" + profile.this.v, "0"));
edit.putString("com" + i + "_fnacd_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_fnacd_" + profile.this.v, "0"));
edit.putString("com" + i + "_fnacm_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_fnacm_" + profile.this.v, "0"));
edit.putString("com" + i + "_fnaca_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_fnaca_" + profile.this.v, "0"));
edit.putString("com" + i + "_sexo_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_sexo_" + profile.this.v, "0"));
edit.putString("com" + i + "_coments_" + profile.this.v, profile.this.d1.getString("com" + i2 + "_coments_" + profile.this.v, "0"));
}
edit.putString("idcom0_" + profile.this.v, substring);
edit.putString("com0_" + profile.this.v, this.a);
edit.putString("com0_fcrea_" + profile.this.v, w);
edit.putString("com0_idusucrea_" + profile.this.v, profile.this.l + "");
edit.putString("com0_nombre_" + profile.this.v, profile.this.getResources().getString(2131886923));
edit.putString("com0_vfoto_" + profile.this.v, "0");
edit.commit();
profile.this.findViewById(2131363181).post(new a());
} else if (str.indexOf("ANDROID:KO MOTIVO:NOADMITE") != -1) {
AlertDialog create = builder.setCancelable(false).setPositiveButton(profile.this.getString(2131886114), (DialogInterface.OnClickListener) null).setMessage(2131886670).create();
if (!profile.this.a.equals("")) {
create.setOnShowListener(new b(create));
}
create.show();
((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} else {
AlertDialog create2 = builder.setCancelable(false).setPositiveButton(profile.this.getString(2131886114), (DialogInterface.OnClickListener) null).setMessage(2131886423).create();
if (!profile.this.a.equals("")) {
create2.setOnShowListener(new c(create2));
}
try {
create2.show();
} catch (Exception unused2) {
}
((TextView) create2.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
}
} catch (Exception unused3) {
}
}
}
class u implements DialogInterface.OnShowListener {
final AlertDialog a;
u(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + profile.this.a));
this.a.getButton(-2).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
private class u0 extends AsyncTask {
ProgressDialog a;
class a implements DialogInterface.OnShowListener {
a() {
}
@Override
public void onShow(DialogInterface dialogInterface) {
config.b1((ProgressBar) u0.this.a.findViewById(R.id.progress), profile.this.a);
}
}
class b implements DialogInterface.OnShowListener {
final AlertDialog a;
b(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
@Override
public String doInBackground(String... strArr) {
Bitmap bitmap;
try {
yf.b bVar = new yf.b();
yf.c.h(bVar, 10000);
yf.c.i(bVar, 60000);
rf.h hVar = new rf.h(bVar);
bf.e eVar = new bf.e(config.f23m6 + "/srv/guardar_fotogal.php?idusu=" + profile.this.l + "&c=" + profile.this.d1.getString("cod", ""));
nf.g gVar = new nf.g(nf.d.b);
profile profileVar = profile.this;
File m0 = profileVar.D.m0(profileVar, "fperfilgal_temp");
BitmapFactory.Options options = new BitmapFactory.Options();
boolean z = true;
options.inJustDecodeBounds = true;
BitmapFactory.decodeFile(m0.getPath(), options);
int i = options.outWidth;
int i2 = options.outHeight;
if (i > 600 || i2 > 600) {
z = false;
}
if (z) {
bitmap = MediaStore.Images.Media.getBitmap(profile.this.getContentResolver(), Uri.fromFile(m0));
} else {
config configVar = profile.this.D;
int round = Math.round(i / config.n(i, i2, MediaError.DetailedErrorCode.TEXT_UNKNOWN, MediaError.DetailedErrorCode.TEXT_UNKNOWN));
BitmapFactory.Options options2 = new BitmapFactory.Options();
options2.inSampleSize = round;
bitmap = BitmapFactory.decodeFile(m0.getPath(), options2);
}
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.JPEG, 90, byteArrayOutputStream);
gVar.a("foto1", new of.b(byteArrayOutputStream.toByteArray(), "temporal.jpg"));
eVar.a(gVar);
eVar.x("User-Agent", "Android Vinebre Software");
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(hVar.a(eVar).c().j(), "UTF-8"));
StringBuilder sb = new StringBuilder();
while (true) {
String readLine = bufferedReader.readLine();
if (readLine == null) {
break;
}
sb.append(readLine);
}
return sb.indexOf("ANDROID:OK") != -1 ? sb.toString() : "";
} catch (Exception | OutOfMemoryError unused) {
return "";
}
}
@Override
public void onPostExecute(String str) {
boolean z;
int i;
int indexOf;
ProgressDialog progressDialog = this.a;
if (progressDialog != null && progressDialog.isShowing()) {
this.a.cancel();
}
int indexOf2 = str.indexOf("ANDROID:OK ID:");
if (indexOf2 == -1 || (indexOf = str.indexOf("-", (i = indexOf2 + 14))) == -1) {
z = false;
} else {
h0 h0Var = new h0();
h0Var.a = str.substring(i, indexOf);
h0Var.c = DateFormat.format("ddMMyyHHmm", new Date()).toString();
h0Var.b = "0";
h0Var.d = "0";
profile.this.B.add(0, h0Var);
profile profileVar = profile.this;
profileVar.n = 0;
try {
config.x(profileVar.D.m0(profileVar, "fperfilgal_temp"), new File(profile.this.E, "fperfilgal_" + h0Var.a + ".jpg"));
profile profileVar2 = profile.this;
config.x(profileVar2.D.m0(profileVar2, "fperfilgal_temp"), new File(profile.this.E, "fperfilgal_" + h0Var.a + "_g.jpg"));
} catch (Exception unused) {
}
profile.this.p();
SharedPreferences.Editor edit = profile.this.d1.edit();
for (int i2 = 3; i2 > 0; i2 += -1) {
String str2 = "idf" + i2 + "_" + profile.this.v;
SharedPreferences sharedPreferences = profile.this.d1;
StringBuilder sb = new StringBuilder();
sb.append("idf");
int i3 = i2 - 1;
sb.append(i3);
sb.append("_");
sb.append(profile.this.v);
edit.putString(str2, sharedPreferences.getString(sb.toString(), ""));
edit.putString("f" + i2 + "_fcrea_" + profile.this.v, profile.this.d1.getString("f" + i3 + "_fcrea_" + profile.this.v, ""));
edit.putString("f" + i2 + "_nlikes_" + profile.this.v, profile.this.d1.getString("f" + i3 + "_nlikes_" + profile.this.v, ""));
edit.putString("f" + i2 + "_liked_" + profile.this.v, profile.this.d1.getString("f" + i3 + "_liked_" + profile.this.v, ""));
}
edit.putString("idf0_" + profile.this.v, h0Var.a);
edit.putString("f0_fcrea_" + profile.this.v, h0Var.c);
edit.putString("f0_nlikes_" + profile.this.v, h0Var.b);
edit.putString("f0_liked_" + profile.this.v, h0Var.d);
edit.commit();
z = true;
}
if (z) {
return;
}
AlertDialog create = new AlertDialog.Builder(profile.this).setCancelable(false).setPositiveButton(profile.this.getString(2131886114), (DialogInterface.OnClickListener) null).setMessage(2131886423).create();
if (!profile.this.a.equals("")) {
create.setOnShowListener(new b(create));
}
create.show();
try {
((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} catch (Exception unused2) {
}
}
@Override
protected void onPreExecute() {
ProgressDialog progressDialog = new ProgressDialog(profile.this);
this.a = progressDialog;
progressDialog.setMessage(profile.this.getString(2131886751));
this.a.setIndeterminate(true);
if (!profile.this.a.equals("")) {
this.a.setOnShowListener(new a());
}
this.a.show();
}
private u0() {
}
}
class v implements SearchManager.OnDismissListener {
v() {
}
@Override
public void onDismiss() {
profile.this.c = false;
}
}
private class v0 extends AsyncTask {
int a;
String b;
String c;
class a implements DialogInterface.OnShowListener {
final AlertDialog a;
a(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + profile.this.a));
}
}
public v0(int i, String str, String str2) {
this.a = i;
this.b = str;
this.c = str2;
}
@Override
public String doInBackground(String... strArr) {
Bitmap bitmap;
String str = "";
rf.h hVar = new rf.h();
bf.e eVar = new bf.e(config.f23m6 + "/srv/guardar_videogal.php");
nf.g gVar = new nf.g();
profile profileVar = profile.this;
try {
bitmap = MediaStore.Images.Media.getBitmap(profile.this.getContentResolver(), Uri.fromFile(profileVar.D.p0(profileVar, this.a)));
} catch (IOException e) {
e.printStackTrace();
bitmap = null;
}
if (bitmap == null) {
return "KO";
}
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, byteArrayOutputStream);
gVar.a("thumb", new of.b(byteArrayOutputStream.toByteArray(), "temporal.jpg"));
try {
gVar.a("idusu", new of.f(profile.this.l + ""));
gVar.a("c", new of.f(profile.this.u));
gVar.a("idvideo", new of.f(this.b));
gVar.a("formato", new of.f(this.c));
} catch (UnsupportedEncodingException e2) {
e2.printStackTrace();
}
eVar.a(gVar);
eVar.x("User-Agent", "Android Vinebre Software");
try {
xe.i c = hVar.a(eVar).c();
str = ag.d.d(c);
if (c != null) {
try {
c.g();
} catch (IOException e3) {
e3.printStackTrace();
}
}
} catch (Exception e4) {
e4.printStackTrace();
}
hVar.b().shutdown();
return str;
}
@Override
public void onPostExecute(String str) {
boolean z;
int i;
int indexOf;
try {
profile.this.G0.cancel();
} catch (Exception unused) {
}
int indexOf2 = str.indexOf("ANDROID:OK ID:");
if (indexOf2 == -1 || (indexOf = str.indexOf("-", (i = indexOf2 + 14))) == -1) {
z = false;
} else {
i0 i0Var = new i0();
i0Var.a = str.substring(i, indexOf);
i0Var.b = this.c;
i0Var.d = DateFormat.format("ddMMyyHHmm", new Date()).toString();
i0Var.c = "0";
i0Var.e = "0";
profile.this.C.add(0, i0Var);
profile profileVar = profile.this;
z = true;
profileVar.t++;
profileVar.o = 0;
try {
config.x(profileVar.D.p0(profileVar, this.a), new File(profile.this.E, "fperfilgalv_" + i0Var.a + ".jpg"));
} catch (Exception unused2) {
}
profile.this.u();
SharedPreferences.Editor edit = profile.this.d1.edit();
for (int i2 = 3; i2 > 0; i2 += -1) {
String str2 = "idv" + i2 + "_" + profile.this.v;
SharedPreferences sharedPreferences = profile.this.d1;
StringBuilder sb = new StringBuilder();
sb.append("idv");
int i3 = i2 - 1;
sb.append(i3);
sb.append("_");
sb.append(profile.this.v);
edit.putString(str2, sharedPreferences.getString(sb.toString(), ""));
edit.putString("v" + i2 + "_formato_" + profile.this.v, profile.this.d1.getString("v" + i3 + "_formato_" + profile.this.v, ""));
edit.putString("v" + i2 + "_fcrea_" + profile.this.v, profile.this.d1.getString("v" + i3 + "_fcrea_" + profile.this.v, ""));
edit.putString("v" + i2 + "_nlikes_" + profile.this.v, profile.this.d1.getString("v" + i3 + "_nlikes_" + profile.this.v, ""));
edit.putString("v" + i2 + "_liked_" + profile.this.v, profile.this.d1.getString("v" + i3 + "_liked_" + profile.this.v, ""));
}
edit.putString("idv0_" + profile.this.v, i0Var.a);
edit.putString("v0_formato_" + profile.this.v, i0Var.b);
edit.putString("v0_fcrea_" + profile.this.v, i0Var.d);
edit.putString("v0_nlikes_" + profile.this.v, i0Var.c);
edit.putString("v0_liked_" + profile.this.v, i0Var.e);
edit.commit();
}
if (z) {
return;
}
AlertDialog create = new AlertDialog.Builder(profile.this).setCancelable(false).setPositiveButton(profile.this.getString(2131886114), (DialogInterface.OnClickListener) null).setMessage(2131886423).create();
if (!profile.this.a.equals("")) {
create.setOnShowListener(new a(create));
}
create.show();
try {
((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} catch (Exception unused3) {
}
}
}
class w implements DialogInterface.OnClickListener {
final String a;
w(String str) {
this.a = str;
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
profile.this.f(this.a);
}
}
private class w0 extends AsyncTask {
String a;
int b;
class a implements DialogInterface.OnShowListener {
a() {
}
@Override
public void onShow(DialogInterface dialogInterface) {
config.b1((ProgressBar) profile.this.G0.findViewById(R.id.progress), profile.this.a);
}
}
public w0(int i, String str) {
this.a = str;
this.b = i;
}
@Override
public String doInBackground(String... strArr) {
String str;
str = "";
rf.h hVar = new rf.h();
bf.e eVar = new bf.e(config.f20j6 + "video-upload." + config.f22l6 + "/upload.php?pro=1");
of.e eVar2 = new of.e(new File(this.a));
nf.g gVar = new nf.g();
gVar.a("videoFile", eVar2);
try {
gVar.a("idusu", new of.f(profile.this.l + ""));
gVar.a("idapp", new of.f("3014518"));
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
eVar.a(gVar);
eVar.x("User-Agent", "Android Vinebre Software");
try {
xe.i c = hVar.a(eVar).c();
str = c != null ? ag.d.d(c) : "";
if (c != null) {
try {
c.g();
} catch (IOException e2) {
e2.printStackTrace();
}
}
} catch (Exception e3) {
e3.printStackTrace();
}
hVar.b().shutdown();
return str;
}
@Override
public void onPostExecute(String str) {
int indexOf = str.indexOf("ANDROID:OK:-");
boolean z = false;
if (indexOf != -1) {
int i = indexOf + 12;
int indexOf2 = str.indexOf("-", i + 1);
String substring = str.substring(i, indexOf2);
int i2 = indexOf2 + 1;
String substring2 = str.substring(i2, str.indexOf("-", i2));
String str2 = substring2.equals("1") ? "mp4" : substring2.equals("2") ? "3gp" : substring2.equals("3") ? "webm" : "";
if (!str2.isEmpty()) {
try {
FileInputStream fileInputStream = new FileInputStream(this.a);
profile profileVar = profile.this;
String absolutePath = profileVar.D.q0(profileVar, "vp" + substring + "." + str2).getAbsolutePath();
FileOutputStream fileOutputStream = new FileOutputStream(absolutePath);
byte[] bArr = new byte[1024];
while (true) {
int read = fileInputStream.read(bArr);
if (read == -1) {
break;
} else {
fileOutputStream.write(bArr, 0, read);
}
}
fileInputStream.close();
fileOutputStream.flush();
fileOutputStream.close();
this.a = absolutePath;
} catch (Exception e) {
e.printStackTrace();
}
profile.this.new v0(this.b, substring, substring2).execute(new String[0]);
z = true;
}
}
if (z) {
return;
}
try {
profile.this.G0.dismiss();
} catch (Exception unused) {
}
}
@Override
protected void onPreExecute() {
profile.this.G0 = new ProgressDialog(profile.this);
profile profileVar = profile.this;
profileVar.G0.setMessage(profileVar.getString(2131886751));
profile.this.G0.setIndeterminate(true);
if (!profile.this.a.equals("")) {
profile.this.G0.setOnShowListener(new a());
}
profile.this.G0.show();
}
}
class x implements DialogInterface.OnShowListener {
final AlertDialog a;
x(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + profile.this.a));
Button button = this.a.getButton(-2);
if (button != null) {
button.setTextColor(Color.parseColor("#" + profile.this.a));
}
}
}
private class x0 extends AsyncTask {
String a;
Bitmap b;
class a implements View.OnClickListener {
a() {
}
@Override
public void onClick(View view) {
Intent intent = new Intent(profile.this, (Class<?>) fotoperfil.class);
File file = new File(profile.this.E, "fperfil_" + profile.this.v + "_g.jpg");
StringBuilder sb = new StringBuilder();
sb.append("file://");
sb.append(file.getAbsolutePath());
intent.putExtra(ImagesContract.URL, sb.toString());
intent.putExtra("idusu_profile", profile.this.v);
profile.this.startActivityForResult(intent, 0);
}
}
@Override
public String doInBackground(String... strArr) {
if (this.a == null) {
return "0";
}
try {
HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(config.f21k6 + "/srv/imgs/usus/" + this.a + "_1.jpg?v=" + profile.this.w).openConnection();
httpURLConnection.setDoInput(true);
httpURLConnection.setConnectTimeout(10000);
httpURLConnection.setReadTimeout(20000);
httpURLConnection.connect();
InputStream inputStream = httpURLConnection.getInputStream();
this.b = BitmapFactory.decodeStream(inputStream);
inputStream.close();
httpURLConnection.disconnect();
this.b.compress(Bitmap.CompressFormat.JPEG, 100, new FileOutputStream(new File(profile.this.E, "fperfil_" + this.a + "_g.jpg")));
return "1";
} catch (MalformedURLException | IOException | Exception | OutOfMemoryError unused) {
return "0";
}
}
@Override
public void onPostExecute(String str) {
if (str.equals("1")) {
SharedPreferences.Editor edit = profile.this.d1.edit();
edit.putString("fperfil_" + this.a + "_g", profile.this.w);
edit.commit();
}
profile.this.findViewById(2131363042).setVisibility(8);
profile.this.findViewById(2131363045).setVisibility(8);
if (str.equals("1")) {
profile.this.F.setImageBitmap(this.b);
profile.this.F.setOnClickListener(new a());
}
}
@Override
protected void onPreExecute() {
this.a = profile.this.v;
}
private x0() {
}
}
class y extends RewardedAdLoadCallback {
final Context b;
class a extends FullScreenContentCallback {
a() {
}
@Override
public void onAdDismissedFullScreenContent() {
profile profileVar = profile.this;
if (profileVar.F0) {
profileVar.abrir_secc(profileVar.e);
}
}
@Override
public void onAdFailedToShowFullScreenContent(com.google.android.gms.ads.AdError adError) {
profile profileVar = profile.this;
profileVar.abrir_secc(profileVar.e);
}
@Override
public void onAdShowedFullScreenContent() {
}
}
class b implements OnUserEarnedRewardListener {
b() {
}
@Override
public void onUserEarnedReward(RewardItem rewardItem) {
y yVar = y.this;
profile.this.F0 = true;
config.i1(yVar.b);
}
}
y(Context context) {
this.b = context;
}
@Override
public void onAdLoaded(RewardedAd rewardedAd) {
profile.this.f.cancel();
rewardedAd.setFullScreenContentCallback(new a());
rewardedAd.show((Activity) this.b, new b());
}
@Override
public void onAdFailedToLoad(LoadAdError loadAdError) {
profile profileVar = profile.this;
if (profileVar.D.f(this.b, profileVar.h)) {
return;
}
profile.this.f.cancel();
profile profileVar2 = profile.this;
profileVar2.abrir_secc(profileVar2.e);
}
}
private class y0 extends AsyncTask {
String a;
int b;
Bitmap c;
public y0(String str, int i) {
this.a = str;
this.b = i;
}
@Override
public String doInBackground(String... strArr) {
try {
HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(config.f21k6 + "/srv/imgs/ususgal/" + profile.this.v + "_" + this.a + ".jpg").openConnection();
httpURLConnection.setDoInput(true);
httpURLConnection.setConnectTimeout(10000);
httpURLConnection.setReadTimeout(60000);
httpURLConnection.connect();
InputStream inputStream = httpURLConnection.getInputStream();
this.c = BitmapFactory.decodeStream(inputStream);
inputStream.close();
httpURLConnection.disconnect();
profile profileVar = profile.this;
this.c.compress(Bitmap.CompressFormat.JPEG, 100, new FileOutputStream(profileVar.D.q0(profileVar, "fperfilgal_" + this.a + "_g.jpg")));
return "1";
} catch (MalformedURLException | IOException | Exception | OutOfMemoryError unused) {
return "0";
}
}
@Override
public void onPostExecute(String str) {
try {
profile.this.findViewById(2131363018).setVisibility(8);
profile.this.findViewById(2131363019).setVisibility(8);
profile.this.findViewById(2131363020).setVisibility(8);
profile.this.findViewById(2131363021).setVisibility(8);
profile.this.findViewById(2131363022).setVisibility(8);
profile.this.findViewById(2131363023).setVisibility(8);
profile.this.findViewById(2131363024).setVisibility(8);
profile.this.findViewById(2131363025).setVisibility(8);
} catch (Exception unused) {
}
if (str.equals("1")) {
Intent intent = new Intent(profile.this, (Class<?>) fotogal.class);
StringBuilder sb = new StringBuilder();
sb.append("file://");
profile profileVar = profile.this;
sb.append(profileVar.D.q0(profileVar, "fperfilgal_" + this.a + "_g.jpg").getAbsolutePath());
intent.putExtra(ImagesContract.URL, sb.toString());
intent.putExtra("nlikes", ((h0) profile.this.B.get(this.b)).b);
intent.putExtra("liked", ((h0) profile.this.B.get(this.b)).d);
intent.putExtra("fcrea", ((h0) profile.this.B.get(this.b)).c);
intent.putExtra("idf", this.a);
intent.putExtra("indf", this.b);
intent.putExtra("idusu_profile", profile.this.v);
intent.putExtra("p_fnac", profile.this.y0.getInt("p_fnac"));
intent.putExtra("p_sexo", profile.this.y0.getInt("p_sexo"));
intent.putExtra("p_descr", profile.this.y0.getInt("p_descr"));
intent.putExtra("p_dist", profile.this.y0.getInt("p_dist"));
intent.putExtra("coments_chat", profile.this.y0.getBoolean("coments_chat"));
intent.putExtra("galeria", profile.this.y0.getBoolean("galeria"));
intent.putExtra("privados_chat", profile.this.y0.getBoolean("privados_chat"));
intent.putExtra("fotos_perfil", profile.this.m);
intent.putExtra("fotos_chat", profile.this.y0.getInt("fotos_chat"));
profile.this.startActivityForResult(intent, 0);
}
}
@Override
protected void onPreExecute() {
int i;
int i2;
int i3 = this.b % 4;
if (i3 == 0) {
i = 2131363018;
i2 = 2131363019;
} else if (i3 == 1) {
i = 2131363020;
i2 = 2131363021;
} else if (i3 == 2) {
i = 2131363022;
i2 = 2131363023;
} else {
if (i3 != 3) {
return;
}
i = 2131363024;
i2 = 2131363025;
}
profile profileVar = profile.this;
if (profileVar.t0) {
profileVar.findViewById(i2).setVisibility(0);
} else {
profileVar.findViewById(i).setVisibility(0);
}
}
}
class z implements AdDisplayListener {
z() {
}
public void adClicked(com.startapp.sdk.adsbase.Ad ad) {
}
public void adDisplayed(com.startapp.sdk.adsbase.Ad ad) {
}
public void adHidden(com.startapp.sdk.adsbase.Ad ad) {
profile profileVar = profile.this;
if (profileVar.F0) {
profileVar.abrir_secc(profileVar.e);
}
}
public void adNotDisplayed(com.startapp.sdk.adsbase.Ad ad) {
}
}
private void g() {
boolean z2;
boolean z3;
boolean z7;
boolean z8;
boolean z9;
boolean z10;
boolean z11;
ArrayList arrayList;
if (getSharedPreferences("sh", 0).getBoolean("sinads", false)) {
return;
}
if (this.v.equals(this.l + "")) {
z2 = false;
z3 = false;
z7 = false;
z8 = false;
z9 = false;
z10 = false;
z11 = false;
} else {
if (!this.D.u3.equals("")) {
config configVar = this.D;
if (configVar.C4 != 0 && configVar.D4 != 0) {
z2 = true;
z7 = this.D.f4.equals("") && (arrayList = this.D.f40b6) != null && arrayList.size() > 0;
z8 = !this.D.i4.equals("");
z9 = !this.D.k4.equals("");
z10 = !this.D.f52m4.equals("");
z11 = !this.D.v3.equals("");
z3 = !this.D.I3.equals("");
}
}
z2 = false;
if (this.D.f4.equals("")) {
}
z8 = !this.D.i4.equals("");
z9 = !this.D.k4.equals("");
z10 = !this.D.f52m4.equals("");
z11 = !this.D.v3.equals("");
z3 = !this.D.I3.equals("");
}
ArrayList arrayList2 = new ArrayList();
if (z2) {
arrayList2.add(1);
}
if (z7 && !z3) {
arrayList2.add(2);
}
if (z8) {
arrayList2.add(3);
}
if (z9) {
arrayList2.add(4);
}
if (z10) {
arrayList2.add(5);
}
if (z11 && UnityAds.isInitialized()) {
arrayList2.add(6);
}
if (z3) {
arrayList2.add(7);
}
int intValue = !arrayList2.isEmpty() ? ((Integer) arrayList2.get(new Random().nextInt(((arrayList2.size() - 1) - 0) + 1) + 0)).intValue() : 0;
if (intValue == 1) {
AdView adView = new AdView(this);
adView.setAdSize(AdSize.LARGE_BANNER);
adView.setAdUnitId(this.D.u3);
findViewById(2131363413).setVisibility(8);
((LinearLayout) findViewById(2131362679)).setVisibility(0);
((LinearLayout) findViewById(2131362680)).removeAllViews();
((LinearLayout) findViewById(2131362680)).addView(adView);
adView.loadAd(new AdRequest.Builder().build());
return;
}
if (intValue == 2) {
if (config.J("#" + this.z)) {
((TextView) findViewById(2131363413)).setTextColor(config.f13d6);
}
this.D.k(this, 1, 2, -1, null);
return;
}
if (intValue == 3) {
NativeBannerAd nativeBannerAd = new NativeBannerAd(this, this.D.i4);
findViewById(2131363413).setVisibility(8);
nativeBannerAd.loadAd(nativeBannerAd.buildLoadAdConfig().withAdListener(new d0(nativeBannerAd)).build());
return;
}
if (intValue == 4) {
Banner banner = new Banner(this, new e0());
banner.setAdTag("BANNER PROFILE");
findViewById(2131363413).setVisibility(8);
banner.loadAd(320, 50);
return;
}
if (intValue == 5) {
IronSourceBannerLayout ironSourceBannerLayout = this.D.S4;
if (ironSourceBannerLayout != null) {
IronSource.destroyBanner(ironSourceBannerLayout);
}
this.D.S4 = IronSource.createBanner(this, ISBannerSize.BANNER);
findViewById(2131363413).setVisibility(8);
((LinearLayout) findViewById(2131362679)).setVisibility(0);
((LinearLayout) findViewById(2131362680)).removeAllViews();
((LinearLayout) findViewById(2131362680)).addView(this.D.S4);
IronSource.loadBanner(this.D.S4);
return;
}
if (intValue == 6) {
findViewById(2131363413).setVisibility(8);
f0 f0Var = new f0();
BannerView bannerView = new BannerView(this, this.D.v3, new UnityBannerSize(320, 50));
bannerView.setListener(f0Var);
bannerView.load();
return;
}
if (intValue != 7) {
this.x0 = this.D.F0(this, false);
return;
}
BannerAd bannerAd = new BannerAd(this);
this.e1 = bannerAd;
bannerAd.setAutoRefresh(false);
this.e1.setAdSize(com.wortise.ads.AdSize.HEIGHT_90);
this.e1.setAdUnitId(this.D.I3);
findViewById(2131363413).setVisibility(8);
((LinearLayout) findViewById(2131362679)).setVisibility(0);
this.e1.setListener(new g0());
this.e1.loadAd();
}
private void i(Context context) {
this.g = new y(context);
}
private void j(boolean z2) {
String trim = ((TextView) findViewById(2131362269)).getText().toString().replace("@", "").trim();
if (trim.equals("")) {
return;
}
if (z2 && this.p < 600) {
((InputMethodManager) getSystemService("input_method")).hideSoftInputFromWindow(((TextView) findViewById(2131362088)).getWindowToken(), 0);
}
((TextView) findViewById(2131362269)).setTextColor(-7829368);
this.X.setVisibility(0);
t0 t0Var = this.E0;
if (t0Var == null || t0Var.getStatus() != AsyncTask.Status.RUNNING) {
if (!this.d1.contains("usufav_" + this.v)) {
if (!this.d1.contains("usufav_noactivar_" + this.v)) {
h(true);
}
}
t0 t0Var2 = new t0(trim);
this.E0 = t0Var2;
t0Var2.execute(new String[0]);
}
}
@Override
public void abrir_secc(View view) {
Intent intent;
com.eugene.hymnesetlouanges.k n02 = this.D.n0(view, this);
if (n02 == null) {
return;
}
try {
if (this.v.equals(this.l + "") && (intent = n02.a) != null) {
if (intent.getComponent().getClassName().endsWith(".preperfil")) {
return;
}
}
} catch (Exception unused) {
}
if (view.getTag(2131363305) != null) {
Bundle bundle = this.y0;
if (bundle == null || !bundle.containsKey("desde_game_2")) {
n02.b = false;
} else {
n02.b = true;
}
Intent intent2 = n02.a;
if (intent2 != null) {
intent2.putExtra("game_idusu_ref", this.v);
}
}
if (n02.b) {
this.b = true;
Intent intent3 = new Intent();
intent3.putExtra("finalizar", true);
intent3.putExtra("finalizar_app", n02.c);
setResult(-1, intent3);
}
if (n02.d) {
startActivityForResult(n02.a, 0);
} else {
Intent intent4 = n02.a;
if (intent4 != null) {
if (n02.b && this.D.T4 != 2) {
intent4.putExtra("es_root", true);
}
if (this.b) {
this.d = false;
}
startActivityForResult(n02.a, 0);
}
}
if (!this.b || this.c) {
return;
}
finish();
}
public void adError(String str) {
this.f.cancel();
abrir_secc(this.e);
}
public void adLoaded(String str, AppnextAdCreativeType appnextAdCreativeType) {
this.f.cancel();
this.h.showAd();
}
void e(String str) {
if (str == null) {
return;
}
AlertDialog create = new AlertDialog.Builder(this).setNegativeButton(2131886227, (DialogInterface.OnClickListener) null).setPositiveButton(2131886114, new w(str)).setMessage(2131886357).create();
if (!this.a.equals("")) {
create.setOnShowListener(new x(create));
}
create.show();
try {
((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} catch (Exception unused) {
}
}
void f(String str) {
config.Q0(Toast.makeText(this, getResources().getString(2131886415), 0));
config.I(this, str);
new t_chat.b0(str, this.l, this.u, this).execute(new String[0]);
SharedPreferences.Editor edit = this.d1.edit();
edit.putBoolean("ban_" + str, true);
edit.commit();
Intent intent = new Intent();
intent.putExtra("idusu_ban", str);
setResult(-1, intent);
if (str.equals(this.v)) {
finish();
return;
}
for (int i2 = 0; i2 < this.Z.getChildCount(); i2++) {
LinearLayout linearLayout = (LinearLayout) this.Z.getChildAt(i2);
String str2 = (String) linearLayout.findViewById(2131362567).getTag(2131362428);
if (str2 != null && str2.equals(str)) {
linearLayout.setVisibility(8);
SharedPreferences.Editor edit2 = this.d1.edit();
int i3 = i2;
while (i3 < 4) {
String str3 = "idcom" + i3 + "_" + this.v;
SharedPreferences sharedPreferences = this.d1;
StringBuilder sb = new StringBuilder();
sb.append("idcom");
int i4 = i3 + 1;
sb.append(i4);
sb.append("_");
sb.append(this.v);
edit2.putString(str3, sharedPreferences.getString(sb.toString(), ""));
edit2.putString("com" + i3 + "_" + this.v, this.d1.getString("com" + i4 + "_" + this.v, ""));
edit2.putString("com" + i3 + "_fcrea_" + this.v, this.d1.getString("com" + i4 + "_fcrea_" + this.v, ""));
edit2.putString("com" + i3 + "_idusucrea_" + this.v, this.d1.getString("com" + i4 + "_idusucrea_" + this.v, ""));
edit2.putString("com" + i3 + "_nombre_" + this.v, this.d1.getString("com" + i4 + "_nombre_" + this.v, ""));
edit2.putString("com" + i3 + "_vfoto_" + this.v, this.d1.getString("com" + i4 + "_vfoto_" + this.v, "0"));
edit2.putString("com" + i3 + "_privados_" + this.v, this.d1.getString("com" + i4 + "_privados_" + this.v, "0"));
edit2.putString("com" + i3 + "_fnacd_" + this.v, this.d1.getString("com" + i4 + "_fnacd_" + this.v, "0"));
edit2.putString("com" + i3 + "_fnacm_" + this.v, this.d1.getString("com" + i4 + "_fnacm_" + this.v, "0"));
edit2.putString("com" + i3 + "_fnaca_" + this.v, this.d1.getString("com" + i4 + "_fnaca_" + this.v, "0"));
edit2.putString("com" + i3 + "_sexo_" + this.v, this.d1.getString("com" + i4 + "_sexo_" + this.v, "0"));
edit2.putString("com" + i3 + "_coments_" + this.v, this.d1.getString("com" + i4 + "_coments_" + this.v, "0"));
i3 = i4;
}
edit2.commit();
}
}
}
void h(boolean z2) {
if (this.v.equals(this.l + "")) {
return;
}
SharedPreferences.Editor edit = this.d1.edit();
if (z2) {
edit.putBoolean("usufav_" + this.v, true);
if (!this.v0) {
this.s++;
}
this.v0 = true;
if (this.t0) {
this.O.setImageDrawable(getResources().getDrawable(2131231244));
} else {
this.O.setImageDrawable(getResources().getDrawable(2131231243));
}
if (this.X0.size() > 0) {
if (!((com.eugene.hymnesetlouanges.s0) this.X0.get(0)).f.equals(this.l + "")) {
com.eugene.hymnesetlouanges.s0 s0Var = new com.eugene.hymnesetlouanges.s0();
s0Var.f = this.l + "";
s0Var.e = getResources().getString(2131886923);
s0Var.b = this.D.p0(this, 1).exists();
this.X0.add(0, s0Var);
this.Y0.notifyDataSetChanged();
}
}
} else {
edit.remove("usufav_" + this.v);
if (this.v0) {
this.s--;
}
if (this.s < 0) {
this.s = 0;
}
this.v0 = false;
if (this.t0) {
this.O.setImageDrawable(getResources().getDrawable(2131231246));
} else {
this.O.setImageDrawable(getResources().getDrawable(2131231245));
}
if (this.X0.size() > 0) {
if (((com.eugene.hymnesetlouanges.s0) this.X0.get(0)).f.equals(this.l + "")) {
this.X0.remove(0);
this.Y0.notifyDataSetChanged();
}
}
}
edit.commit();
((TextView) findViewById(2131363480)).setText(this.s + "");
Intent intent = new Intent();
intent.putExtra("accion_usu_fav_id", this.v);
intent.putExtra("accion_usu_fav_accion", z2);
setResult(-1, intent);
}
void k() {
int u02 = this.D.u0(this);
int i2 = this.D.T4;
int i3 = 0;
if (i2 == 1) {
ListView listView = (ListView) findViewById(2131362584);
this.c1 = listView;
this.D.s(listView);
} else if (i2 == 0) {
int i4 = 0;
int i7 = 0;
while (true) {
com.eugene.hymnesetlouanges.m[] mVarArr = this.D.Z1;
if (i4 >= mVarArr.length) {
break;
}
if (!mVarArr[i4].B) {
findViewById(i4).setOnClickListener(this);
i7++;
if (i7 == u02) {
break;
}
}
i4++;
}
if (findViewById(2131362438) != null && findViewById(2131362438).getVisibility() == 0) {
findViewById(2131362438).setOnClickListener(this);
}
}
while (true) {
int[] iArr = this.D.c2;
if (i3 >= iArr.length) {
return;
}
int i8 = iArr[i3];
if (i8 > 0) {
findViewById(i8).setOnClickListener(this);
}
i3++;
}
}
void l(java.lang.Boolean r18, java.lang.Boolean r19, java.lang.String r20, java.lang.String r21, java.lang.String r22, java.lang.String r23, java.lang.String r24, java.lang.String r25, java.lang.String r26, java.lang.String r27, java.lang.String r28, java.lang.String r29, java.lang.String r30, java.lang.String r31) {
throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.profile.l(java.lang.Boolean, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String):void");
}
void m(boolean z2) {
int i2;
this.Z.removeAllViews();
boolean z3 = false;
int i3 = 0;
while (i3 < 4) {
if (this.d1.getString("idcom" + i3 + "_" + this.v, "").equals("")) {
return;
}
String string = this.d1.getString("com" + i3 + "_idusucrea_" + this.v, "");
if (!string.equals("")) {
if (this.d1.getBoolean("ban_" + string, z3)) {
i2 = i3;
i3 = i2 + 1;
z3 = false;
}
}
i2 = i3;
l(Boolean.valueOf(z2), Boolean.FALSE, this.d1.getString("idcom" + i3 + "_" + this.v, ""), this.d1.getString("com" + i3 + "_idusucrea_" + this.v, ""), this.d1.getString("com" + i3 + "_nombre_" + this.v, ""), this.d1.getString("com" + i3 + "_fcrea_" + this.v, ""), this.d1.getString("com" + i3 + "_" + this.v, ""), this.d1.getString("com" + i3 + "_vfoto_" + this.v, ""), this.d1.getString("com" + i3 + "_privados_" + this.v, ""), this.d1.getString("com" + i3 + "_fnacd_" + this.v, ""), this.d1.getString("com" + i3 + "_fnacm_" + this.v, ""), this.d1.getString("com" + i3 + "_fnaca_" + this.v, ""), this.d1.getString("com" + i3 + "_sexo_" + this.v, ""), this.d1.getString("com" + i3 + "_coments_" + this.v, ""));
i3 = i2 + 1;
z3 = false;
}
}
void n(int i2, boolean z2) {
ImageView imageView;
LinearLayout linearLayout;
TextView textView;
ProgressBar progressBar;
String string;
String string2;
Bitmap bitmap;
int i3 = i2 % 4;
boolean z3 = true;
if (i3 == 0) {
imageView = this.G;
linearLayout = this.a0;
textView = this.i0;
progressBar = this.P;
} else if (i3 == 1) {
imageView = this.H;
linearLayout = this.b0;
textView = this.j0;
progressBar = this.Q;
} else if (i3 == 2) {
imageView = this.I;
linearLayout = this.c0;
textView = this.k0;
progressBar = this.R;
} else {
if (i3 != 3) {
return;
}
imageView = this.J;
linearLayout = this.d0;
textView = this.l0;
progressBar = this.S;
}
Boolean bool = Boolean.FALSE;
if (z2) {
string = ((h0) this.B.get(i2)).a;
string2 = ((h0) this.B.get(i2)).b;
bool = Boolean.valueOf(((h0) this.B.get(i2)).e);
} else {
string = this.d1.getString("idf" + i2 + "_" + this.v, "");
string2 = this.d1.getString("f" + i2 + "_nlikes_" + this.v, "");
}
progressBar.setVisibility(8);
imageView.setTag(2131362428, string);
imageView.setTag(2131362430, "N");
imageView.setTag(2131362431, i2 + "");
if (bool.booleanValue()) {
imageView.setImageDrawable(null);
imageView.setTag(2131362430, "S");
linearLayout.setVisibility(8);
} else {
if (string2.equals("0")) {
linearLayout.setVisibility(8);
} else {
textView.setText(string2);
linearLayout.setVisibility(0);
}
try {
File file = new File(this.E, "fperfilgal_" + string + ".jpg");
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
BitmapFactory.decodeFile(file.getPath(), options);
int i4 = (int) ((getResources().getDisplayMetrics().density * 48.0f) + 0.5f);
int i7 = (int) ((getResources().getDisplayMetrics().density * 48.0f) + 0.5f);
int i8 = options.outWidth;
int i9 = options.outHeight;
if (i8 > i4 || i9 > i7) {
z3 = false;
}
if (z3) {
bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), Uri.fromFile(file));
} else {
int round = Math.round(i8 / config.n(i8, i9, i4, i7));
BitmapFactory.Options options2 = new BitmapFactory.Options();
options2.inSampleSize = round;
bitmap = BitmapFactory.decodeFile(file.getPath(), options2);
}
imageView.setImageBitmap(bitmap);
imageView.setTag(2131362430, "S");
} catch (Exception unused) {
imageView.setImageDrawable(getResources().getDrawable(2131231748));
progressBar.setVisibility(0);
} catch (OutOfMemoryError unused2) {
}
}
imageView.setVisibility(0);
}
void o() {
this.G.setVisibility(8);
this.H.setVisibility(8);
this.I.setVisibility(8);
this.J.setVisibility(8);
this.P.setVisibility(8);
this.Q.setVisibility(8);
this.R.setVisibility(8);
this.S.setVisibility(8);
this.a0.setVisibility(8);
this.b0.setVisibility(8);
this.c0.setVisibility(8);
this.d0.setVisibility(8);
int i2 = 0;
boolean z2 = false;
while (i2 < 4) {
if (this.d1.getString("idf" + i2 + "_" + this.v, "").equals("")) {
break;
}
n(i2, false);
i2++;
z2 = true;
}
if (!z2) {
if (!this.v.equals(this.l + "")) {
findViewById(2131363362).setVisibility(8);
return;
}
}
findViewById(2131363362).setVisibility(0);
}
@Override
protected void onActivityResult(int i2, int i3, Intent intent) {
int i4;
Bitmap bitmap;
int i7;
boolean z2;
TextView textView;
LinearLayout linearLayout;
boolean z3;
TextView textView2;
LinearLayout linearLayout2;
String absolutePath;
config configVar = this.D;
if (configVar == null || !configVar.U0(i2, i3, intent, this)) {
int i8 = -1;
if (i3 == -1) {
int i9 = 100;
if (i2 == 108) {
String absolutePath2 = this.D.m0(this, "dt_foto98_temp.mp4").getAbsolutePath();
if (absolutePath2 == null || absolutePath2.equals("") || !w(absolutePath2)) {
return;
}
while (this.D.p0(this, i9).exists()) {
i9++;
}
this.D.p0(this, 99).renameTo(this.D.p0(this, i9));
new w0(i9, absolutePath2).execute(new String[0]);
return;
}
boolean z7 = true;
if (i2 == 4) {
Uri data = intent.getData();
String f02 = config.f0(data, getApplicationContext());
String str = "dt_foto98_temp." + f02.substring(f02.lastIndexOf(".") + 1);
if (config.k1(this, data, str) && (absolutePath = this.D.m0(this, str).getAbsolutePath()) != null && !absolutePath.equals("") && w(absolutePath)) {
while (this.D.p0(this, i9).exists()) {
i9++;
}
this.D.p0(this, 99).renameTo(this.D.p0(this, i9));
new w0(i9, absolutePath).execute(new String[0]);
return;
}
return;
}
if (i2 == 106) {
try {
long length = new File(this.D.m0(this, "fperfilgal_temp").getAbsolutePath()).length();
Cursor query = getApplicationContext().getContentResolver().query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, new String[]{"orientation", "_size"}, "date_added>=?", new String[]{String.valueOf((this.k / 1000) - 1)}, "date_added desc");
if (query != null && this.k != 0 && query.getCount() != 0) {
while (query.moveToNext()) {
if (query.getLong(1) == length) {
i7 = query.getInt(0);
break;
}
}
}
i7 = -1;
i4 = i7;
} catch (Exception e2) {
e2.printStackTrace();
i4 = -1;
}
if (i4 == -1) {
try {
i4 = new ExifInterface(this.D.m0(this, "fperfilgal_temp").getAbsolutePath()).getAttributeInt("Orientation", -1);
} catch (IOException e3) {
e3.printStackTrace();
}
}
try {
try {
File m02 = this.D.m0(this, "fperfilgal_temp");
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
BitmapFactory.decodeFile(m02.getPath(), options);
int i10 = options.outWidth;
int i11 = options.outHeight;
if (i10 > 600 || i11 > 600) {
z7 = false;
}
if (z7) {
bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), Uri.fromFile(m02));
} else {
int round = Math.round(i10 / config.n(i10, i11, MediaError.DetailedErrorCode.TEXT_UNKNOWN, MediaError.DetailedErrorCode.TEXT_UNKNOWN));
BitmapFactory.Options options2 = new BitmapFactory.Options();
options2.inSampleSize = round;
bitmap = BitmapFactory.decodeFile(m02.getPath(), options2);
}
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, new FileOutputStream(this.D.m0(this, "fperfilgal_temp")));
} catch (Exception e4) {
e4.printStackTrace();
}
} catch (Exception | OutOfMemoryError unused) {
}
if (i4 != -1) {
Matrix matrix = new Matrix();
int i12 = i4 == 3 ? 180 : i4 == 8 ? 270 : i4 == 6 ? 90 : 0;
if (i12 > 0) {
try {
try {
Bitmap decodeFile = BitmapFactory.decodeFile(this.D.m0(this, "fperfilgal_temp").getAbsolutePath());
matrix.postRotate(i12);
Bitmap.createBitmap(decodeFile, 0, 0, decodeFile.getWidth(), decodeFile.getHeight(), matrix, true).compress(Bitmap.CompressFormat.JPEG, 100, new FileOutputStream(this.D.m0(this, "fperfilgal_temp")));
} catch (Exception e8) {
e8.printStackTrace();
}
} catch (Exception | OutOfMemoryError unused2) {
}
}
}
new u0().execute(new String[0]);
return;
}
if (i2 == 2) {
Uri data2 = intent.getData();
try {
String[] strArr = {"orientation"};
Cursor query2 = getContentResolver().query(data2, strArr, null, null, null);
if (query2 != null && query2.moveToFirst()) {
i8 = query2.getInt(query2.getColumnIndex(strArr[0]));
}
Matrix matrix2 = new Matrix();
matrix2.postRotate(i8);
Bitmap E = this.D.E(data2, MediaError.DetailedErrorCode.TEXT_UNKNOWN, MediaError.DetailedErrorCode.TEXT_UNKNOWN);
Bitmap createBitmap = Bitmap.createBitmap(E, 0, 0, E.getWidth(), E.getHeight(), matrix2, true);
try {
createBitmap.compress(Bitmap.CompressFormat.JPEG, 100, new FileOutputStream(this.D.m0(this, "fperfilgal_temp")));
} catch (Exception | OutOfMemoryError unused3) {
}
createBitmap.recycle();
new u0().execute(new String[0]);
return;
} catch (Exception | OutOfMemoryError unused4) {
return;
}
}
if (intent != null && intent.hasExtra("accion_usu_fav_id")) {
for (int i13 = 0; i13 < this.X0.size(); i13++) {
if (((com.eugene.hymnesetlouanges.s0) this.X0.get(i13)).f.equals(intent.getStringExtra("accion_usu_fav_id"))) {
((com.eugene.hymnesetlouanges.s0) this.X0.get(i13)).d = intent.getBooleanExtra("accion_usu_fav_accion", false);
this.Y0.notifyDataSetChanged();
return;
}
}
return;
}
if (intent != null && intent.hasExtra("nlikes")) {
int i14 = 0;
while (true) {
if (i14 >= this.B.size()) {
z3 = false;
break;
} else {
if (((h0) this.B.get(i14)).a.equals(intent.getExtras().getString("idf"))) {
((h0) this.B.get(i14)).b = intent.getExtras().getString("nlikes");
((h0) this.B.get(i14)).d = intent.getExtras().getString("liked");
z3 = true;
break;
}
i14++;
}
}
if (z3) {
int i15 = i14 - this.n;
if (i15 == 0) {
linearLayout2 = this.a0;
textView2 = this.i0;
} else if (i15 == 1) {
linearLayout2 = this.b0;
textView2 = this.j0;
} else if (i15 == 2) {
linearLayout2 = this.c0;
textView2 = this.k0;
} else if (i15 == 3) {
linearLayout2 = this.d0;
textView2 = this.l0;
} else {
textView2 = null;
linearLayout2 = null;
}
if (linearLayout2 != null) {
textView2.setText(intent.getExtras().getString("nlikes"));
linearLayout2.setVisibility(0);
return;
}
return;
}
return;
}
if (intent != null && intent.hasExtra("elim_fotoperfil")) {
f(this.v);
return;
}
if (intent != null && intent.hasExtra("elim_foto")) {
String stringExtra = intent.getStringExtra("elim_foto");
int intExtra = intent.getIntExtra("indf", -1);
if (stringExtra.equals("") || intExtra == -1) {
return;
}
File file = new File(this.E, "fperfilgal_" + stringExtra + ".jpg");
if (file.exists()) {
file.delete();
}
File file2 = new File(this.E, "fperfilgal_" + stringExtra + "_g.jpg");
if (file2.exists()) {
file2.delete();
}
((h0) this.B.get(intExtra)).e = true;
n(intExtra, true);
SharedPreferences.Editor edit = this.d1.edit();
while (intExtra <= 3) {
String str2 = "idf" + intExtra + "_" + this.v;
SharedPreferences sharedPreferences = this.d1;
StringBuilder sb = new StringBuilder();
sb.append("idf");
int i16 = intExtra + 1;
sb.append(i16);
sb.append("_");
sb.append(this.v);
edit.putString(str2, sharedPreferences.getString(sb.toString(), ""));
edit.putString("f" + intExtra + "_fcrea_" + this.v, this.d1.getString("f" + i16 + "_fcrea_" + this.v, ""));
edit.putString("f" + intExtra + "_nlikes_" + this.v, this.d1.getString("f" + i16 + "_nlikes_" + this.v, ""));
edit.putString("f" + intExtra + "_liked_" + this.v, this.d1.getString("f" + i16 + "_liked_" + this.v, ""));
intExtra = i16;
}
edit.commit();
return;
}
if (intent != null && intent.hasExtra("nlikesv")) {
int i17 = 0;
while (true) {
if (i17 >= this.C.size()) {
z2 = false;
break;
} else {
if (((i0) this.C.get(i17)).a.equals(intent.getExtras().getString("idv"))) {
((i0) this.C.get(i17)).c = intent.getExtras().getString("nlikesv");
((i0) this.C.get(i17)).e = intent.getExtras().getString("liked");
z2 = true;
break;
}
i17++;
}
}
if (z2) {
int i18 = i17 - this.o;
if (i18 == 0) {
linearLayout = this.e0;
textView = this.m0;
} else if (i18 == 1) {
linearLayout = this.f0;
textView = this.n0;
} else if (i18 == 2) {
linearLayout = this.g0;
textView = this.o0;
} else if (i18 == 3) {
linearLayout = this.h0;
textView = this.p0;
} else {
textView = null;
linearLayout = null;
}
if (linearLayout != null) {
textView.setText(intent.getExtras().getString("nlikesv"));
linearLayout.setVisibility(0);
return;
}
return;
}
return;
}
if (intent == null || !intent.hasExtra("elim_video")) {
if (intent != null && intent.hasExtra("finalizar") && intent.getExtras().getBoolean("finalizar")) {
if (!intent.getExtras().getBoolean("finalizar_app")) {
this.d = false;
}
setResult(-1, intent);
finish();
return;
}
return;
}
String stringExtra2 = intent.getStringExtra("elim_video");
int intExtra2 = intent.getIntExtra("indv", -1);
if (stringExtra2.equals("") || intExtra2 == -1) {
return;
}
File file3 = new File(this.E, "fperfilgalv_" + stringExtra2 + ".jpg");
if (file3.exists()) {
file3.delete();
}
((i0) this.C.get(intExtra2)).f = true;
this.t--;
s(intExtra2, true);
SharedPreferences.Editor edit2 = this.d1.edit();
while (intExtra2 <= 3) {
String str3 = "idv" + intExtra2 + "_" + this.v;
SharedPreferences sharedPreferences2 = this.d1;
StringBuilder sb2 = new StringBuilder();
sb2.append("idv");
int i19 = intExtra2 + 1;
sb2.append(i19);
sb2.append("_");
sb2.append(this.v);
edit2.putString(str3, sharedPreferences2.getString(sb2.toString(), ""));
edit2.putString("v" + intExtra2 + "_formato_" + this.v, this.d1.getString("v" + i19 + "_formato_" + this.v, ""));
edit2.putString("v" + intExtra2 + "_fcrea_" + this.v, this.d1.getString("v" + i19 + "_fcrea_" + this.v, ""));
edit2.putString("v" + intExtra2 + "_nlikes_" + this.v, this.d1.getString("v" + i19 + "_nlikes_" + this.v, ""));
edit2.putString("v" + intExtra2 + "_liked_" + this.v, this.d1.getString("v" + i19 + "_liked_" + this.v, ""));
intExtra2 = i19;
}
edit2.commit();
}
}
}
@Override
public void onAdClicked(Ad ad) {
}
public void onAdClosed() {
if (this.F0) {
abrir_secc(this.e);
}
}
@Override
public void onAdLoaded(Ad ad) {
this.f.cancel();
this.i.show();
}
@Override
public void onAttachedToWindow() {
super.onAttachedToWindow();
getWindow().setFormat(1);
}
@Override
public void onBackPressed() {
if (!this.d || this.q0 || !this.D.N5) {
super.onBackPressed();
} else {
this.q0 = true;
config.t(this);
}
}
@Override
public void onClick(View view) {
String str;
String str2;
String str3;
String str4;
String str5;
String str6;
String str7;
String str8;
View findViewById;
if (view.getId() == 2131362368) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
if (!config.C0(this)) {
builder.setMessage(getResources().getString(2131886954));
builder.setNegativeButton(2131886286, new f());
AlertDialog create = builder.create();
if (!this.a.equals("")) {
create.setOnShowListener(new g(create));
}
create.show();
return;
}
View inflate = getLayoutInflater().inflate(2131558774, (ViewGroup) null);
WebView webView = (WebView) inflate.findViewById(2131363595);
webView.getSettings().setUserAgentString("Android Vinebre Software");
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setPluginState(WebSettings.PluginState.ON);
webView.getSettings().setUseWideViewPort(true);
webView.getSettings().setLoadWithOverviewMode(true);
ProgressBar progressBar = (ProgressBar) inflate.findViewById(2131363080);
config.b1(progressBar, this.a);
builder.setNegativeButton(2131886286, new b());
AlertDialog create2 = builder.create();
if (!this.a.equals("")) {
create2.setOnShowListener(new c(create2));
}
webView.setWebViewClient(new d(create2, progressBar));
create2.setView(inflate);
if (!this.a.equals("")) {
create2.setOnShowListener(new e(create2));
}
create2.show();
webView.loadUrl(config.f20j6 + "games-scores." + config.f22l6 + "/srv/game_comparison.php?c1=" + this.z + "&c2=" + this.A + "&fp=" + this.m + "&idusu=" + this.l + "&c=" + this.u + "&idusu_2=" + this.v);
return;
}
if (view.getId() == 2131362474) {
e(this.v);
return;
}
if (view.getId() == 2131363480 || view.getId() == 2131363481) {
if (this.s == 0) {
return;
}
this.a1 = new AlertDialog.Builder(this);
View inflate2 = getLayoutInflater().inflate(2131558541, (ViewGroup) null);
this.b1 = inflate2;
config.b1((ProgressBar) inflate2.findViewById(2131362592), this.a);
this.a1.setView(this.b1);
this.a1.setCancelable(true);
ListView listView = (ListView) this.b1.findViewById(2131362706);
listView.setCacheColorHint(0);
com.eugene.hymnesetlouanges.r0 r0Var = new com.eugene.hymnesetlouanges.r0(this, 2131558540, this.X0, this.l);
this.Y0 = r0Var;
listView.setAdapter((ListAdapter) r0Var);
listView.setOnItemClickListener(new h());
this.a1.show();
if (this.X0.size() == 0) {
o0 o0Var = this.Z0;
if (o0Var == null || o0Var.getStatus() != AsyncTask.Status.RUNNING) {
o0 o0Var2 = new o0();
this.Z0 = o0Var2;
o0Var2.execute(new String[0]);
return;
}
return;
}
return;
}
try {
if (view.getId() == 2131362513) {
if (this.d1.contains("usufav_" + this.v)) {
h(false);
SharedPreferences.Editor edit = this.d1.edit();
edit.putBoolean("usufav_noactivar_" + this.v, true);
edit.commit();
new j0(Boolean.FALSE).execute(new String[0]);
return;
}
h(true);
new j0(Boolean.TRUE).execute(new String[0]);
if (this.d1.contains("usufav_msgmostrado")) {
return;
}
SharedPreferences.Editor edit2 = this.d1.edit();
edit2.putBoolean("usufav_msgmostrado", true);
edit2.commit();
AlertDialog create3 = new AlertDialog.Builder(this).setCancelable(false).setPositiveButton(2131886114, (DialogInterface.OnClickListener) null).setMessage(2131886502).create();
if (!this.a.equals("")) {
create3.setOnShowListener(new i(create3));
}
create3.show();
((TextView) create3.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} else if (view.getId() == 2131362369) {
AlertDialog create4 = new AlertDialog.Builder(this).setNegativeButton(2131886669, (DialogInterface.OnClickListener) null).setPositiveButton(2131886740, new j()).setMessage(2131886361).create();
if (!this.a.equals("")) {
create4.setOnShowListener(new l(create4));
}
create4.show();
((TextView) create4.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} else {
if (view.getId() == 2131362548) {
Intent intent = new Intent(this, (Class<?>) t_chat.class);
intent.putExtra("empezar_privado", true);
intent.putExtra("externo", true);
intent.putExtra("id_remit", this.v);
intent.putExtra("nombre_remit", this.y0.getString("nombre"));
intent.putExtra("idchat", 0);
intent.putExtra("idtema", 0);
intent.putExtra("fotos_perfil", this.y0.getInt("fotos_perfil"));
intent.putExtra("fotos_chat", this.y0.getInt("fotos_chat"));
intent.putExtra("fnac", this.y0.getInt("p_fnac"));
intent.putExtra("sexo", this.y0.getInt("p_sexo"));
intent.putExtra("descr", this.y0.getInt("p_descr"));
intent.putExtra("dist", this.y0.getInt("p_dist"));
intent.putExtra("privados", this.y0.getBoolean("privados_chat"));
intent.putExtra("coments", this.y0.getBoolean("coments_chat"));
intent.putExtra("galeria", this.y0.getBoolean("galeria"));
config configVar = this.D;
intent.putExtra("c1", configVar.Z1[configVar.c].g);
config configVar2 = this.D;
intent.putExtra("c2", configVar2.Z1[configVar2.c].h);
startActivityForResult(intent, 0);
return;
}
if (view.getId() == 2131362504) {
j(false);
return;
}
if (view.getId() == 2131362498) {
View view2 = (View) view.getParent().getParent();
String str9 = (String) view2.getTag(2131362430);
if (str9 == null) {
return;
}
AlertDialog create5 = new AlertDialog.Builder(this).setNegativeButton(2131886669, (DialogInterface.OnClickListener) null).setPositiveButton(2131886740, new m(view2, str9)).setMessage(2131886352).create();
if (!this.a.equals("")) {
create5.setOnShowListener(new n(create5));
}
create5.show();
((TextView) create5.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} else {
if (view.getId() == 2131362553) {
View view3 = (View) view.getParent().getParent();
if (view3 == null || (findViewById = view3.findViewById(2131362567)) == null) {
return;
}
e((String) findViewById.getTag(2131362428));
return;
}
if (view.getId() == 2131362527) {
new k0().execute(new String[0]);
return;
}
if (view.getId() == 2131362530) {
this.n += 4;
new l0().execute(new String[0]);
return;
}
Object[] objArr = 0;
Object[] objArr2 = 0;
if (view.getId() == 2131362536) {
this.n -= 4;
new l0().execute(new String[0]);
return;
}
if (view.getId() == 2131362533) {
this.o += 4;
new p0().execute(new String[0]);
return;
}
if (view.getId() == 2131362539) {
this.o -= 4;
new p0().execute(new String[0]);
return;
}
if (view.getId() == 2131362506 || view.getId() == 2131362508 || view.getId() == 2131362510 || view.getId() == 2131362512) {
String str10 = (String) view.getTag(2131362428);
int parseInt = Integer.parseInt((String) view.getTag(2131362431));
if (str10 == null || ((i0) this.C.get(parseInt)).f) {
return;
}
i0 i0Var = (i0) this.C.get(parseInt);
Intent intent2 = new Intent(this, (Class<?>) t_video_pro.class);
if (i0Var.b.equals("1")) {
str = "mp4";
} else if (i0Var.b.equals("2")) {
str = "3gp";
} else if (!i0Var.b.equals("3")) {
return;
} else {
str = "webm";
}
intent2.putExtra(ImagesContract.URL, "https://video." + config.f22l6 + "/files_pro/v" + i0Var.a + "_" + this.v + "." + str);
intent2.putExtra("ind", this.D.c);
intent2.putExtra("nlikes", ((i0) this.C.get(parseInt)).c);
intent2.putExtra("liked", ((i0) this.C.get(parseInt)).e);
intent2.putExtra("idv", i0Var.a);
intent2.putExtra("indv", parseInt);
intent2.putExtra("idusu_profile", this.v);
intent2.putExtra("coments", this.y0.getString("coments"));
intent2.putExtra("p_fnac", this.y0.getInt("p_fnac"));
intent2.putExtra("p_sexo", this.y0.getInt("p_sexo"));
intent2.putExtra("p_descr", this.y0.getInt("p_descr"));
intent2.putExtra("p_dist", this.y0.getInt("p_dist"));
intent2.putExtra("coments_chat", this.y0.getBoolean("coments_chat"));
intent2.putExtra("galeria", this.y0.getBoolean("galeria"));
intent2.putExtra("privados_chat", this.y0.getBoolean("privados_chat"));
intent2.putExtra("fotos_perfil", this.m);
intent2.putExtra("fotos_chat", this.y0.getInt("fotos_chat"));
startActivityForResult(intent2, 0);
return;
}
if (view.getId() == 2131362505 || view.getId() == 2131362507 || view.getId() == 2131362509 || view.getId() == 2131362511) {
String str11 = (String) view.getTag(2131362428);
int parseInt2 = Integer.parseInt((String) view.getTag(2131362431));
if (str11 == null || ((h0) this.B.get(parseInt2)).e) {
return;
}
File q02 = this.D.q0(this, "fperfilgal_" + str11 + "_g.jpg");
if (!q02.exists()) {
y0 y0Var = this.D0;
if (y0Var == null || y0Var.getStatus() != AsyncTask.Status.RUNNING) {
y0 y0Var2 = new y0(str11, parseInt2);
this.D0 = y0Var2;
y0Var2.execute(new String[0]);
return;
}
return;
}
Intent intent3 = new Intent(this, (Class<?>) fotogal.class);
intent3.putExtra(ImagesContract.URL, "file://" + q02.getAbsolutePath());
intent3.putExtra("nlikes", ((h0) this.B.get(parseInt2)).b);
intent3.putExtra("liked", ((h0) this.B.get(parseInt2)).d);
intent3.putExtra("fcrea", ((h0) this.B.get(parseInt2)).c);
intent3.putExtra("idf", str11);
intent3.putExtra("indf", parseInt2);
intent3.putExtra("idusu_profile", this.v);
intent3.putExtra("p_fnac", this.y0.getInt("p_fnac"));
intent3.putExtra("p_sexo", this.y0.getInt("p_sexo"));
intent3.putExtra("p_descr", this.y0.getInt("p_descr"));
intent3.putExtra("p_dist", this.y0.getInt("p_dist"));
intent3.putExtra("coments_chat", this.y0.getBoolean("coments_chat"));
intent3.putExtra("galeria", this.y0.getBoolean("galeria"));
intent3.putExtra("privados_chat", this.y0.getBoolean("privados_chat"));
intent3.putExtra("fotos_perfil", this.m);
intent3.putExtra("fotos_chat", this.y0.getInt("fotos_chat"));
startActivityForResult(intent3, 0);
return;
}
if (view.getId() == 2131362053) {
AlertDialog create6 = new AlertDialog.Builder(this).setCancelable(true).setPositiveButton(getString(2131886769), new p()).setNegativeButton(getString(2131886770), new o()).setMessage(2131886771).create();
if (!this.a.equals("")) {
create6.setOnShowListener(new q(create6));
}
create6.show();
((TextView) create6.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} else {
if (view.getId() != 2131362062) {
if (view.getTag(2131362428) != null && view.getTag(2131362428).equals("ESCOMENT")) {
Intent intent4 = new Intent(this, (Class<?>) profile.class);
intent4.putExtra(FacebookMediationAdapter.KEY_ID, (String) view.getTag(2131362430));
intent4.putExtra("privados", (String) view.getTag(2131362433));
intent4.putExtra("nombre", (String) view.getTag(2131362431));
intent4.putExtra("coments", (String) view.getTag(2131362429));
intent4.putExtra("fnac_d", (String) view.getTag(2131362434));
intent4.putExtra("fnac_m", (String) view.getTag(2131362435));
intent4.putExtra("fnac_a", (String) view.getTag(2131362436));
intent4.putExtra("sexo", (String) view.getTag(2131362437));
intent4.putExtra("vfoto", (String) view.getTag(2131362432));
if (this.y0.containsKey("desdepriv")) {
intent4.putExtra("desdepriv", "1");
}
intent4.putExtra("p_fnac", this.y0.getInt("p_fnac"));
intent4.putExtra("p_sexo", this.y0.getInt("p_sexo"));
intent4.putExtra("p_descr", this.y0.getInt("p_descr"));
intent4.putExtra("p_dist", this.y0.getInt("p_dist"));
intent4.putExtra("coments_chat", this.y0.getBoolean("coments_chat"));
intent4.putExtra("galeria", this.y0.getBoolean("galeria"));
intent4.putExtra("privados_chat", this.y0.getBoolean("privados_chat"));
intent4.putExtra("fotos_perfil", this.m);
intent4.putExtra("fotos_chat", this.y0.getInt("fotos_chat"));
startActivityForResult(intent4, 0);
return;
}
String str12 = this.D.f60q4;
if ((str12 == null || str12.equals("")) && (((str2 = this.D.d3) == null || str2.equals("")) && (((str3 = this.D.f58p4) == null || str3.equals("")) && (((str4 = this.D.f66t4) == null || str4.equals("")) && (((str5 = this.D.f68u4) == null || str5.equals("")) && (((str6 = this.D.J4) == null || str6.equals("")) && (((str7 = this.D.f70v4) == null || str7.equals("")) && ((str8 = this.D.f72w4) == null || str8.equals(""))))))))) {
abrir_secc(view);
return;
}
String str13 = this.D.f60q4;
if (str13 != null && !str13.equals("")) {
this.h = new RewardedVideo(this, this.D.f60q4);
}
String str14 = this.D.f58p4;
if (str14 != null) {
str14.equals("");
}
String str15 = this.D.f66t4;
if (str15 != null && !str15.equals("")) {
this.i = new RewardedVideoAd(this, this.D.f66t4);
}
String str16 = this.D.f68u4;
if (str16 != null && !str16.equals("")) {
this.j = new StartAppAd(this);
}
ProgressDialog progressDialog = new ProgressDialog(this);
this.f = progressDialog;
this.e = view;
if (this.D.j1(this, view, this.a, progressDialog, this.g, this.h, this.i, this.j, view)) {
return;
}
abrir_secc(view);
return;
}
if (this.t >= this.D.t2) {
AlertDialog create7 = new AlertDialog.Builder(this).setCancelable(true).setPositiveButton(getString(2131886114), (DialogInterface.OnClickListener) null).setMessage(2131886384).create();
if (!this.a.equals("")) {
create7.setOnShowListener(new r(create7));
}
create7.show();
((TextView) create7.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} else {
AlertDialog create8 = new AlertDialog.Builder(this).setCancelable(true).setPositiveButton(getString(2131886769), new t()).setNegativeButton(getString(2131886737), new s()).setMessage(2131886419).create();
if (!this.a.equals("")) {
create8.setOnShowListener(new u(create8));
}
create8.show();
((TextView) create8.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
}
}
}
}
} catch (Exception unused) {
}
}
@Override
public void onConfigurationChanged(Configuration configuration) {
BannerAd bannerAd;
com.facebook.ads.AdView adView;
AdView adView2;
super.onConfigurationChanged(configuration);
((LinearLayout) findViewById(2131362685)).removeViewAt(0);
k();
((LinearLayout) findViewById(2131362610)).removeAllViews();
com.eugene.hymnesetlouanges.c cVar = this.x0;
if (cVar != null && (adView2 = cVar.a) != null) {
try {
adView2.destroy();
} catch (Exception unused) {
}
}
com.eugene.hymnesetlouanges.c cVar2 = this.x0;
if (cVar2 != null && (adView = cVar2.b) != null) {
try {
adView.destroy();
} catch (Exception unused2) {
}
}
com.eugene.hymnesetlouanges.c cVar3 = this.x0;
if (cVar3 != null && (bannerAd = cVar3.e) != null) {
try {
bannerAd.destroy();
} catch (Exception unused3) {
}
}
g();
}
@Override
public void onCreate(android.os.Bundle r18) {
throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.profile.onCreate(android.os.Bundle):void");
}
@Override
public void onDestroy() {
com.eugene.hymnesetlouanges.c cVar;
BannerAd bannerAd;
com.eugene.hymnesetlouanges.c cVar2;
com.facebook.ads.AdView adView;
com.eugene.hymnesetlouanges.c cVar3;
AdView adView2;
if (this.D.J3 != 0 && (cVar3 = this.x0) != null && (adView2 = cVar3.a) != null) {
adView2.destroy();
}
if (this.D.J3 != 0 && (cVar2 = this.x0) != null && (adView = cVar2.b) != null) {
adView.destroy();
}
if (this.D.J3 != 0 && (cVar = this.x0) != null && (bannerAd = cVar.e) != null) {
bannerAd.destroy();
}
BannerAd bannerAd2 = this.e1;
if (bannerAd2 != null) {
bannerAd2.destroy();
}
if (this.D.r2 > 0) {
try {
this.d1.unregisterOnSharedPreferenceChangeListener(this);
} catch (Exception unused) {
}
}
if ((this.d && isFinishing()) || config.f25o6) {
config.d0(this);
}
super.onDestroy();
}
@Override
public void onError(Ad ad, AdError adError) {
this.f.cancel();
abrir_secc(this.e);
}
public void onFailedToReceiveAd(com.startapp.sdk.adsbase.Ad ad) {
this.f.cancel();
abrir_secc(this.e);
}
@Override
public void onLoggingImpression(Ad ad) {
}
@Override
public void onPause() {
com.eugene.hymnesetlouanges.c cVar;
BannerAd bannerAd;
com.eugene.hymnesetlouanges.c cVar2;
AdView adView;
if (this.D.J3 != 0 && (cVar2 = this.x0) != null && (adView = cVar2.a) != null) {
adView.pause();
}
if (this.D.J3 != 0 && (cVar = this.x0) != null && (bannerAd = cVar.e) != null) {
bannerAd.pause();
}
BannerAd bannerAd2 = this.e1;
if (bannerAd2 != null) {
bannerAd2.pause();
}
super.onPause();
config.W0(this);
}
public void onReceiveAd(com.startapp.sdk.adsbase.Ad ad) {
this.f.cancel();
this.j.showAd("REWARDED VIDEO", new z());
}
@Override
public void onRequestPermissionsResult(int i2, String[] strArr, int[] iArr) {
super.onRequestPermissionsResult(i2, strArr, iArr);
if (i2 == 107 || i2 == 109) {
if (iArr == null || iArr.length <= 0 || !strArr[0].equals("android.permission.CAMERA") || iArr[0] != 0) {
config.H0(this, "", getResources().getString(2131886701), this.a);
return;
}
if (i2 != 107) {
config configVar = this.D;
configVar.y0(this, configVar.m0(this, "dt_foto98_temp.mp4"));
} else {
this.k = System.currentTimeMillis();
config configVar2 = this.D;
configVar2.x0(this, configVar2.m0(this, "fperfilgal_temp"));
}
}
}
@Override
public void onResume() {
com.eugene.hymnesetlouanges.c cVar;
BannerAd bannerAd;
com.eugene.hymnesetlouanges.c cVar2;
AdView adView;
super.onResume();
config.X0(this);
h(this.d1.contains("usufav_" + this.v));
if (this.D.J3 != 0 && (cVar2 = this.x0) != null && (adView = cVar2.a) != null) {
adView.resume();
}
if (this.D.J3 != 0 && (cVar = this.x0) != null && (bannerAd = cVar.e) != null) {
bannerAd.resume();
}
BannerAd bannerAd2 = this.e1;
if (bannerAd2 != null) {
bannerAd2.resume();
}
}
@Override
public void onRewardedVideoClosed() {
if (this.F0) {
abrir_secc(this.e);
}
}
@Override
public void onRewardedVideoCompleted() {
this.F0 = true;
config.i1(this);
}
@Override
public void onSaveInstanceState(Bundle bundle) {
super.onSaveInstanceState(bundle);
bundle.putBoolean("es_root", this.d);
}
@Override
public boolean onSearchRequested() {
this.b = true;
this.c = true;
return super.onSearchRequested();
}
@Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String str) {
ProgressDialog progressDialog;
if (str.equals("vchat_resp") && (progressDialog = this.U0) != null && progressDialog.isShowing()) {
if (sharedPreferences.getString("vchat_resp_idusu_pro", "").equals(this.l + "") && sharedPreferences.getString("vchat_resp_idusu", "").equals(this.v)) {
this.U0.dismiss();
if (!sharedPreferences.getBoolean("vchat_resp_aceptado", false)) {
config.H0(this, "", getResources().getString(2131886931), this.a);
return;
}
String str2 = config.f20j6 + "videochat." + config.f22l6 + "/comm.php?v=" + this.D.r2 + "&info=" + this.l + "-" + this.u + "-" + this.v + "-" + sharedPreferences.getString("vchat_resp_cod", "") + "&requester=1";
Intent intent = new Intent(this, (Class<?>) t_url.class);
intent.putExtra(ImagesContract.URL, str2);
intent.putExtra("es_videochat", true);
startActivityForResult(intent, 0);
}
}
}
@Override
public void onStop() {
super.onStop();
if (!this.b || this.c) {
return;
}
finish();
}
public void onVideoCompleted() {
this.F0 = true;
config.i1(this);
}
void p() {
this.G.setVisibility(8);
this.H.setVisibility(8);
this.I.setVisibility(8);
this.J.setVisibility(8);
this.P.setVisibility(8);
this.Q.setVisibility(8);
this.R.setVisibility(8);
this.S.setVisibility(8);
this.a0.setVisibility(8);
this.b0.setVisibility(8);
this.c0.setVisibility(8);
this.d0.setVisibility(8);
int i2 = 0;
while (i2 < 4 && this.n + i2 <= this.B.size() - 1) {
n(this.n + i2, true);
i2++;
}
if (this.B.isEmpty()) {
if (!this.v.equals(this.l + "")) {
findViewById(2131363362).setVisibility(8);
m0 m0Var = new m0();
this.B0 = m0Var;
m0Var.execute(new String[0]);
}
}
if (this.n + i2 <= this.B.size() - 1 || !this.r0) {
findViewById(2131362363).setVisibility(0);
} else {
findViewById(2131362363).setVisibility(4);
}
if (this.n > 0) {
findViewById(2131362365).setVisibility(0);
} else {
findViewById(2131362365).setVisibility(4);
}
findViewById(2131363362).setVisibility(0);
m0 m0Var2 = new m0();
this.B0 = m0Var2;
m0Var2.execute(new String[0]);
}
void q() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(this.y0.getString("nombre") + " " + getResources().getString(2131886747)).setItems(2130903062, new c0()).setCancelable(false);
try {
AlertDialog show = builder.show();
this.W0 = show;
((TextView) show.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} catch (Exception unused) {
}
}
public void r() {
String str;
String str2;
if (this.q != -1) {
str = this.q + getResources().getString(2131886182);
} else {
str = "";
}
if (this.y != null) {
String country = Locale.getDefault().getCountry();
long parseLong = Long.parseLong(this.y);
if (country.equals("US") || country.equals("GB") || country.equals("MM")) {
if (parseLong > 1600) {
parseLong = Math.round(parseLong / 1600);
str2 = "mi.";
} else {
parseLong = Math.round(parseLong * 1.09d);
str2 = "yd.";
}
} else if (parseLong > 999) {
parseLong = Math.round(parseLong / 1000);
str2 = "km.";
} else {
str2 = "m.";
}
if (!str.isEmpty()) {
str = str + ", ";
}
str = str + parseLong + str2;
}
if (str.isEmpty()) {
((TextView) findViewById(2131363507)).setVisibility(8);
} else {
((TextView) findViewById(2131363507)).setText(str);
((TextView) findViewById(2131363507)).setVisibility(0);
}
}
void s(int i2, boolean z2) {
ImageView imageView;
LinearLayout linearLayout;
TextView textView;
ProgressBar progressBar;
String string;
String string2;
Bitmap bitmap;
int i3 = i2 % 4;
boolean z3 = true;
if (i3 == 0) {
imageView = this.K;
linearLayout = this.e0;
textView = this.m0;
progressBar = this.T;
} else if (i3 == 1) {
imageView = this.L;
linearLayout = this.f0;
textView = this.n0;
progressBar = this.U;
} else if (i3 == 2) {
imageView = this.M;
linearLayout = this.g0;
textView = this.o0;
progressBar = this.V;
} else {
if (i3 != 3) {
return;
}
imageView = this.N;
linearLayout = this.h0;
textView = this.p0;
progressBar = this.W;
}
Boolean bool = Boolean.FALSE;
if (z2) {
string = ((i0) this.C.get(i2)).a;
string2 = ((i0) this.C.get(i2)).c;
bool = Boolean.valueOf(((i0) this.C.get(i2)).f);
} else {
string = this.d1.getString("idv" + i2 + "_" + this.v, "");
string2 = this.d1.getString("v" + i2 + "_nlikes_" + this.v, "");
}
progressBar.setVisibility(8);
imageView.setTag(2131362428, string);
imageView.setTag(2131362430, "N");
imageView.setTag(2131362431, i2 + "");
if (bool.booleanValue()) {
imageView.setImageDrawable(null);
imageView.setTag(2131362430, "S");
linearLayout.setVisibility(8);
} else {
if (string2.equals("0")) {
linearLayout.setVisibility(8);
} else {
textView.setText(string2);
linearLayout.setVisibility(0);
}
try {
File file = new File(this.E, "fperfilgalv_" + string + ".jpg");
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
BitmapFactory.decodeFile(file.getPath(), options);
int i4 = (int) ((getResources().getDisplayMetrics().density * 48.0f) + 0.5f);
int i7 = (int) ((getResources().getDisplayMetrics().density * 48.0f) + 0.5f);
int i8 = options.outWidth;
int i9 = options.outHeight;
if (i8 > i4 || i9 > i7) {
z3 = false;
}
if (z3) {
bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), Uri.fromFile(file));
} else {
int round = Math.round(i8 / config.n(i8, i9, i4, i7));
BitmapFactory.Options options2 = new BitmapFactory.Options();
options2.inSampleSize = round;
bitmap = BitmapFactory.decodeFile(file.getPath(), options2);
}
imageView.setImageBitmap(config.c1(bitmap, BitmapFactory.decodeResource(getResources(), 2131231686)));
imageView.setTag(2131362430, "S");
} catch (Exception unused) {
imageView.setImageDrawable(getResources().getDrawable(2131231748));
progressBar.setVisibility(0);
} catch (OutOfMemoryError unused2) {
}
}
imageView.setVisibility(0);
}
void t() {
this.K.setVisibility(8);
this.L.setVisibility(8);
this.M.setVisibility(8);
this.N.setVisibility(8);
this.T.setVisibility(8);
this.U.setVisibility(8);
this.V.setVisibility(8);
this.W.setVisibility(8);
this.e0.setVisibility(8);
this.f0.setVisibility(8);
this.g0.setVisibility(8);
this.h0.setVisibility(8);
int i2 = 0;
boolean z2 = false;
while (i2 < 4) {
if (this.d1.getString("idv" + i2 + "_" + this.v, "").equals("")) {
break;
}
s(i2, false);
i2++;
z2 = true;
}
if (!z2) {
if (!this.v.equals(this.l + "")) {
findViewById(2131363364).setVisibility(8);
return;
}
}
findViewById(2131363364).setVisibility(0);
}
void u() {
this.K.setVisibility(8);
this.L.setVisibility(8);
this.M.setVisibility(8);
this.N.setVisibility(8);
this.T.setVisibility(8);
this.U.setVisibility(8);
this.V.setVisibility(8);
this.W.setVisibility(8);
this.e0.setVisibility(8);
this.f0.setVisibility(8);
this.g0.setVisibility(8);
this.h0.setVisibility(8);
int i2 = 0;
while (i2 < 4 && this.o + i2 <= this.C.size() - 1) {
s(this.o + i2, true);
i2++;
}
if (this.C.isEmpty()) {
if (!this.v.equals(this.l + "")) {
findViewById(2131363364).setVisibility(8);
q0 q0Var = new q0();
this.C0 = q0Var;
q0Var.execute(new String[0]);
}
}
if (this.o + i2 <= this.C.size() - 1 || !this.s0) {
findViewById(2131362364).setVisibility(0);
} else {
findViewById(2131362364).setVisibility(4);
}
if (this.o > 0) {
findViewById(2131362366).setVisibility(0);
} else {
findViewById(2131362366).setVisibility(4);
}
findViewById(2131363364).setVisibility(0);
q0 q0Var2 = new q0();
this.C0 = q0Var2;
q0Var2.execute(new String[0]);
}
public void v() {
if (((TextView) findViewById(2131363507)).getVisibility() == 8) {
findViewById(2131363530).setVisibility(0);
} else {
findViewById(2131363530).setVisibility(8);
}
if (((TextView) findViewById(2131362207)).getVisibility() == 8) {
findViewById(2131363531).setVisibility(0);
} else {
findViewById(2131363531).setVisibility(8);
}
}
public void videoEnded() {
this.F0 = true;
config.i1(this);
}
boolean w(String str) {
Bitmap bitmap;
File file = new File(str);
boolean z2 = false;
if (file.length() == 0) {
return false;
}
if (file.length() > 111149056) {
AlertDialog create = new AlertDialog.Builder(this).setCancelable(false).setPositiveButton(getString(2131886114), (DialogInterface.OnClickListener) null).setMessage(2131886935).create();
if (!this.a.equals("")) {
create.setOnShowListener(new a(create));
}
create.show();
try {
((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} catch (Exception unused) {
}
return false;
}
try {
ThumbnailUtils.createVideoThumbnail(str, 3).compress(Bitmap.CompressFormat.JPEG, 100, new FileOutputStream(this.D.p0(this, 99)));
} catch (Exception unused2) {
}
try {
File p02 = this.D.p0(this, 99);
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
BitmapFactory.decodeFile(p02.getPath(), options);
int i2 = options.outWidth;
int i3 = options.outHeight;
if (i2 <= 800 && i3 <= 800) {
z2 = true;
}
if (z2) {
bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), Uri.fromFile(p02));
} else {
int round = Math.round(i2 / config.n(i2, i3, 800, 800));
BitmapFactory.Options options2 = new BitmapFactory.Options();
options2.inSampleSize = round;
bitmap = BitmapFactory.decodeFile(p02.getPath(), options2);
}
bitmap.compress(Bitmap.CompressFormat.JPEG, 75, new FileOutputStream(this.D.p0(this, 99)));
} catch (Exception unused3) {
}
return true;
}
}