正在查看: Minits v4.9.3.32 应用的 MainCalendarViewActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Minits v4.9.3.32 应用的 MainCalendarViewActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.xone.android.framework.activities;
import android.R;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.RelativeLayout;
import b8.R0;
import bb.AbstractC0515a;
import com.xone.android.calendarview.u;
import com.xone.android.framework.AbstractC0564f;
import com.xone.android.framework.AbstractC0565g;
import com.xone.android.framework.AbstractC0568j;
import com.xone.android.framework.activities.MainCalendarViewActivity;
import com.xone.android.framework.mainEntry;
import com.xone.android.framework.xoneApp;
import com.xone.android.utils.Utils;
import com.xone.interfaces.IXoneApp;
import com.xone.interfaces.IXoneCollection;
import com.xone.interfaces.IXoneObject;
import fb.t;
import g.c;
import ha.K;
import java.util.Calendar;
import ua.InterfaceC1046q0;
import ua.K0;
import ua.L0;
public final class MainCalendarViewActivity extends c {
public final Handler l = new a(this);
public String m;
public int n;
public String o;
public String p;
public u q;
public static class a extends K {
public a(MainCalendarViewActivity mainCalendarViewActivity) {
super(mainCalendarViewActivity);
}
@Override
public void a(MainCalendarViewActivity mainCalendarViewActivity, Message message) {
try {
int i = message.what;
if (i != 0) {
if (i == 404) {
mainCalendarViewActivity.t0(false);
return;
}
if (i == 405) {
mainCalendarViewActivity.t0(true);
return;
} else if (i == 700) {
mainCalendarViewActivity.w0(message);
return;
} else {
if (i != 701) {
return;
}
mainCalendarViewActivity.r0(message);
return;
}
}
int i2 = message.arg1;
if (i2 == 404) {
mainCalendarViewActivity.t0(false);
return;
}
if (i2 == 405) {
mainCalendarViewActivity.t0(true);
} else if (i2 == 700) {
mainCalendarViewActivity.w0(message);
} else {
if (i2 != 701) {
return;
}
mainCalendarViewActivity.r0(message);
}
} catch (Exception e) {
mainCalendarViewActivity.s0(e);
}
}
}
private void G0(int i, CharSequence charSequence, CharSequence charSequence2) {
p0(i, charSequence, charSequence2).show();
}
private void n0() {
InterfaceC1046q0 error;
try {
IXoneApp c1 = xoneApp.c1();
if (c1 == null || (error = c1.getError()) == null) {
return;
}
error.Clear();
} catch (Exception e) {
s0(e);
}
}
public void o0(IXoneObject iXoneObject) {
IXoneCollection ownerCollection;
if (iXoneObject == null || (ownerCollection = iXoneObject.getOwnerCollection()) == null) {
return;
}
Intent y3 = XoneBaseActivity.y3(ownerCollection);
y3.setAction("android.intent.action.MAIN");
y3.putExtra("collname", ownerCollection.getName());
y3.putExtra("saveandquit", true);
y3.putExtra("index", Integer.valueOf(ownerCollection.ObjectIndex(iXoneObject)));
if (iXoneObject.getOwnerCollection().getOwnerObject() != null) {
y3.putExtra("pushobject", true);
int nextInt = xoneApp.Z0().D1().nextInt();
y3.putExtra("parentID", nextInt);
xoneApp.Z0().k2(iXoneObject, Integer.valueOf(nextInt));
}
startActivityForResult(y3, 503);
}
private AlertDialog p0(int i, CharSequence charSequence, CharSequence charSequence2) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
if (i == 0) {
builder.setIcon(R.drawable.ic_dialog_info);
} else {
builder.setIcon(R.drawable.ic_dialog_alert);
}
if (!t.h(charSequence)) {
builder.setTitle(charSequence);
}
builder.setMessage(charSequence2);
builder.setCancelable(false);
builder.setPositiveButton(getString(AbstractC0568j.a), new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i2) {
dialogInterface.dismiss();
}
});
return builder.create();
}
public void v0() {
try {
u uVar = this.q;
if (uVar == null || uVar.getViewMode() == 0) {
finish();
} else {
this.q.setViewMode(0);
this.q.H();
}
} catch (Exception e) {
s0(e);
}
}
public void onActivityResult(int i, int i2, Intent intent) {
super/*androidx.fragment.app.j*/.onActivityResult(i, i2, intent);
if (i == 503 && i2 == 10) {
try {
this.q.H();
} catch (Exception e) {
e.printStackTrace();
}
}
}
public void onConfigurationChanged(Configuration configuration) {
super.onConfigurationChanged(configuration);
try {
IXoneApp c1 = xoneApp.c1();
if (c1 == null) {
finish();
return;
}
while (c1.IsScriptExecute()) {
Thread.sleep(100L);
if (xoneApp.c1() == null) {
return;
}
}
int i = 0;
if (getResources().getConfiguration().orientation == 1) {
c1.SetVisualConditions("vertical", false);
c1.setGlobalMacro("##CURRENT_ORIENTATION##", "vertical");
} else {
c1.SetVisualConditions("horizontal", false);
c1.setGlobalMacro("##CURRENT_ORIENTATION##", "horizontal");
}
int i2 = getResources().getDisplayMetrics().widthPixels;
int C2 = getResources().getDisplayMetrics().heightPixels - Utils.C2(getWindow());
RelativeLayout relativeLayout = (RelativeLayout) findViewById(AbstractC0564f.B0);
Calendar calendar = Calendar.getInstance();
u uVar = this.q;
if (uVar != null) {
i = uVar.getViewMode();
calendar = this.q.getCurrentViewDate();
relativeLayout.removeView(this.q);
}
Calendar calendar2 = calendar;
IXoneCollection GetCollection = c1.GetCollection(this.m);
if (GetCollection == null) {
finish();
return;
}
u uVar2 = new u(this);
this.q = uVar2;
uVar2.J(this, (u.b) null, new R0(this), this.l, (IXoneObject) null, (String) null, i, calendar2, GetCollection, i2, C2);
this.q.setId(AbstractC0564f.J0);
relativeLayout.addView((View) this.q, -1, -1);
} catch (Exception e) {
s0(e);
}
}
public void onCreate(Bundle bundle) {
Exception exc;
super/*androidx.fragment.app.j*/.onCreate(bundle);
setContentView(AbstractC0565g.k);
this.m = getIntent().getStringExtra("collname");
getOnBackPressedDispatcher().h(new L0(new K0() {
@Override
public final void a() {
MainCalendarViewActivity.this.v0();
}
}));
IXoneApp c1 = xoneApp.c1();
if (c1 == null) {
finish();
return;
}
try {
IXoneCollection GetCollection = c1.GetCollection(this.m);
if (GetCollection == null) {
try {
finish();
return;
} catch (Exception e) {
exc = e;
s0(exc);
}
}
int i = getResources().getDisplayMetrics().widthPixels;
int C2 = getResources().getDisplayMetrics().heightPixels - Utils.C2(getWindow());
RelativeLayout relativeLayout = (RelativeLayout) findViewById(AbstractC0564f.B0);
u uVar = new u(this);
this.q = uVar;
try {
uVar.J(this, (u.b) null, new R0(this), this.l, (IXoneObject) null, (String) null, 0, Calendar.getInstance(), GetCollection, i, C2);
this.q.setId(AbstractC0564f.J0);
relativeLayout.addView((View) this.q, -1, -1);
} catch (Exception e2) {
e = e2;
exc = e;
s0(exc);
}
} catch (Exception e3) {
e = e3;
}
}
public Dialog onCreateDialog(int i) {
try {
} catch (Exception e) {
s0(e);
}
if (i == 2007) {
ProgressDialog progressDialog = new ProgressDialog(this);
progressDialog.setProgressStyle(0);
progressDialog.setMessage(null);
progressDialog.setTitle((CharSequence) null);
return progressDialog;
}
if (i == 2017) {
int i2 = this.n;
String str = this.o;
String str2 = this.p;
this.n = 0;
this.o = null;
this.p = null;
return p0(i2, str, str2);
}
return null;
}
public void onPrepareDialog(int i, Dialog dialog) {
if (i != 2017) {
return;
}
try {
if (this.n == 0) {
((AlertDialog) dialog).setIcon(R.drawable.ic_dialog_info);
} else {
((AlertDialog) dialog).setIcon(R.drawable.ic_dialog_alert);
}
if (!t.h(this.o)) {
dialog.setTitle(this.o);
}
((AlertDialog) dialog).setMessage(this.p);
} catch (Exception e) {
e.printStackTrace();
}
}
public void onResume() {
super/*androidx.fragment.app.j*/.onResume();
mainEntry S = xoneApp.Z0().S();
if (S != null) {
S.u0();
}
}
public void r0(Message message) {
Bundle data = message.getData();
int i = data.getInt("code");
String string = data.getString("title");
String string2 = data.getString("message");
if (!AbstractC0515a.c(i)) {
G0(i, string, string2);
return;
}
if (i == -666) {
n0();
this.q.H();
return;
}
if (t.h(string2)) {
G0(i, string, "NO DESCRIPTION");
return;
}
if ("##EXIT##".equals(string2)) {
n0();
finish();
} else {
if (!"##EXITAPP##".equals(string2)) {
G0(i, string, string2);
return;
}
n0();
setResult(14);
finish();
}
}
public void s0(Exception exc) {
exc.printStackTrace();
}
public void t0(boolean z) {
this.q.F(z);
}
public void w0(Message message) {
Bundle data = message.getData();
this.n = data.getInt("code");
this.o = data.getString("title");
this.p = data.getString("message");
showDialog(2017);
}
}