正在查看: 管控平台 v5.2.3.0. 应用的 LockActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 管控平台 v5.2.3.0. 应用的 LockActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.iflytek.mdmservice.ui;
import android.app.Activity;
import android.app.Dialog;
import android.content.ContentProviderClient;
import android.content.ContentValues;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.drawable.Animatable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.PowerManager;
import android.os.RemoteException;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.Nullable;
import androidx.appcompat.app.ActionBar;
import androidx.collection.LongSparseArray;
import com.iflytek.mdmcommon.AESUtils;
import com.iflytek.mdmcommon.ActivityUtils;
import com.iflytek.mdmcommon.ClickUtil;
import com.iflytek.mdmcommon.LogUtil;
import com.iflytek.mdmcommon.NetUtil;
import com.iflytek.mdmcommon.SpHelper;
import com.iflytek.mdmcommon.Utils;
import com.iflytek.mdmservice.MDMApp;
import com.iflytek.mdmservice.R$color;
import com.iflytek.mdmservice.R$id;
import com.iflytek.mdmservice.R$layout;
import com.iflytek.mdmservice.R$string;
import com.iflytek.mdmservice.db.UserInfoManager;
import com.iflytek.mdmservice.db.entity.UserInfo;
import com.iflytek.mdmservice.model.TimeBean;
import com.iflytek.mdmservice.utils.DeviceHelper;
import com.iflytek.mdmservice.view.SlideUnLockView;
import com.igexin.assist.sdk.AssistPushConsts;
import java.lang.ref.WeakReference;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.concurrent.TimeUnit;
import net.sqlcipher.BuildConfig;
import net.sqlcipher.database.SQLiteDatabase;
import org.greenrobot.eventbus.ThreadMode;
public class LockActivity extends Activity implements SlideUnLockView.a {
private static final String A = LockActivity.class.getSimpleName() + " ";
private static boolean B = false;
LinearLayout f555c;
ImageView d;
TextView e;
TextView f;
TextView g;
TextView h;
TextView i;
ImageView j;
TextView k;
LinearLayout l;
TextView m;
TextView n;
TextView o;
TextView p;
private boolean q;
SlideUnLockView s;
Dialog z;
private SimpleDateFormat f553a = new SimpleDateFormat("hh:mm", Locale.getDefault());
private final SimpleDateFormat f554b = new SimpleDateFormat("MM月dd日", Locale.getDefault());
long[] r = new long[3];
private final io.reactivex.disposables.a t = new io.reactivex.disposables.a();
private final b u = new b(this);
class a implements View.OnClickListener {
long[] f556a = new long[3];
a() {
}
@Override
public void onClick(View view) {
long[] jArr = this.f556a;
System.arraycopy(jArr, 1, jArr, 0, jArr.length - 1);
long[] jArr2 = this.f556a;
jArr2[jArr2.length - 1] = SystemClock.uptimeMillis();
if (this.f556a[0] >= SystemClock.uptimeMillis() - 2000) {
String str = "您已在[2000]ms内连续点击【" + this.f556a.length + "】次了!!!";
LogUtil.d(LockActivity.A, "titleclick " + str);
LockActivity.this.O();
LockActivity.this.d.setEnabled(false);
}
}
}
private static class b extends Handler {
private final WeakReference<LockActivity> f558a;
public b(LockActivity lockActivity) {
this.f558a = new WeakReference<>(lockActivity);
}
@Override
public void handleMessage(Message message) {
LogUtil.d(LockActivity.A, "lock msg_what: " + message.what);
LockActivity lockActivity = this.f558a.get();
if (lockActivity == null) {
return;
}
int i = message.what;
if (i == 1) {
lockActivity.i();
lockActivity.m();
return;
}
if (i == 2) {
lockActivity.i();
lockActivity.n.setText(lockActivity.getString(R$string.lock_fail_time) + LockActivity.q() + lockActivity.getString(R$string.lock_fail_time1));
return;
}
if (i == 3) {
lockActivity.i();
lockActivity.n.setText(R$string.lock_admin_limit);
return;
}
if (i == 4) {
lockActivity.i();
lockActivity.n.setText(R$string.lock_fail_violation);
} else if (i == 5) {
lockActivity.N();
} else if (i != 99) {
lockActivity.i();
} else {
lockActivity.v(true);
}
}
}
static LongSparseArray A(Long l) throws Exception {
LongSparseArray longSparseArray = new LongSparseArray();
longSparseArray.put(l.longValue(), Long.valueOf(System.currentTimeMillis()));
return longSparseArray;
}
static boolean B(LongSparseArray longSparseArray) throws Exception {
long keyAt = longSparseArray.keyAt(0);
return keyAt == 0 || (((Long) longSparseArray.get(keyAt)).longValue() / 1000) % 60 == 0;
}
static Long C(LongSparseArray longSparseArray) throws Exception {
return (Long) longSparseArray.valueAt(0);
}
private void K(String str) {
String b2 = com.iflytek.mdmepas.a.c(MDMApp.j()).b(str);
if (TextUtils.isEmpty(b2)) {
return;
}
LogUtil.c("MDMPolicy", "开始解锁,清除缓存数据 " + str);
com.iflytek.mdmepas.a.c(MDMApp.j()).f(b2);
com.iflytek.mdmepas.a.c(MDMApp.j()).f("time_" + b2);
}
private static void L(boolean z) {
B = z;
}
private void M() {
Cursor cursor = null;
try {
try {
cursor = getContentResolver().query(Uri.parse("content://com.iflytek.mdmservice.provider.UserInfoProvider/userinfo"), null, null, null, null);
if (cursor != null && cursor.moveToNext() && cursor.getColumnIndex("USER_NAME") > -1 && cursor.getColumnIndex("CLASS_NAME") > -1 && cursor.getColumnIndex("STUTAS") > -1) {
String string = cursor.getString(cursor.getColumnIndex("USER_NAME"));
String string2 = cursor.getString(cursor.getColumnIndex("CLASS_NAME"));
if (cursor.getInt(cursor.getColumnIndex("STUTAS")) == 0) {
this.e.setText(string);
this.f.setText(string2);
} else {
this.e.setText(BuildConfig.FLAVOR);
this.f.setText(BuildConfig.FLAVOR);
}
}
if (cursor == null) {
return;
}
} catch (Exception e) {
LogUtil.e(A, "setUserInfo:" + e.getMessage());
if (0 == 0) {
return;
}
}
cursor.close();
} catch (Throwable th) {
if (0 != 0) {
cursor.close();
}
throw th;
}
}
public void N() {
this.j.setVisibility(0);
this.k.setVisibility(0);
v(true);
this.s.setEnabled(false);
((Animatable) this.j.getDrawable()).start();
}
public void i() {
this.j.setVisibility(8);
this.k.setVisibility(8);
v(false);
this.s.e();
this.s.setEnabled(true);
}
private void j() {
this.u.post(new Runnable() {
@Override
public final void run() {
LockActivity.w();
}
});
}
private void k() {
this.u.post(new Runnable() {
@Override
public final void run() {
LockActivity.x();
}
});
}
private void l() {
this.u.post(new Runnable() {
@Override
public final void run() {
LockActivity.y();
}
});
}
public void m() {
finish();
l();
}
private void n() {
if (!NetUtil.isNetworkAvailable(this)) {
Toast.makeText(this, R$string.error_net, 0).show();
this.s.e();
} else {
this.u.removeMessages(99);
N();
new Thread(new Runnable() {
@Override
public final void run() {
com.iflytek.mdmservice.utils.m.a().c();
}
}).start();
}
}
private String o() {
return ActivityUtils.getVersionName(this, "com.iflytek.mdmservice") + com.igexin.push.core.b.ak + ActivityUtils.getVersionName(this, "com.iflytek.mdmadmin") + com.igexin.push.core.b.ak + ActivityUtils.getVersionName(this, "com.iflytek.iflylogin") + com.igexin.push.core.b.ak + ActivityUtils.getVersionName(this, "com.android.iflylauncher3") + com.igexin.push.core.b.ak + ActivityUtils.getVersionName(this, "com.iflytek.mdmstore") + com.igexin.push.core.b.ak + DeviceHelper.getWifiMac() + com.igexin.push.core.b.ak + DeviceHelper.getDeviceNumber();
}
public static String q() {
Date[] d = com.iflytek.mdmservice.utils.m.a().d();
if (d == null) {
return "该设备当天不可用\n";
}
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm");
String format = simpleDateFormat.format(d[0]);
String format2 = simpleDateFormat.format(d[1]);
if ("00:00".equalsIgnoreCase(format2)) {
format2 = "24:00";
}
return format + "-" + format2 + "\n";
}
private void s() {
this.t.c(p().q(io.reactivex.a0.a.b()).g(io.reactivex.u.b.a.a()).m(new io.reactivex.w.g() {
@Override
public final void accept(Object obj) {
LockActivity.this.E((TimeBean) obj);
}
}));
}
private void t() {
this.f555c.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LockActivity.this.F(view);
}
});
this.d.setOnClickListener(new a());
this.o.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LockActivity.this.G(view);
}
});
this.p.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LockActivity.this.H(view);
}
});
}
private void u() {
this.f555c = (LinearLayout) findViewById(R$id.ll_wifi_setting);
this.d = (ImageView) findViewById(R$id.iv_logo);
this.e = (TextView) findViewById(R$id.tv_username);
this.f = (TextView) findViewById(R$id.tv_classname);
M();
this.o = (TextView) findViewById(R$id.btn_one);
this.p = (TextView) findViewById(R$id.btn_two);
this.g = (TextView) findViewById(R$id.tv_time);
this.h = (TextView) findViewById(R$id.tv_date);
this.i = (TextView) findViewById(R$id.tv_weekday);
this.j = (ImageView) findViewById(R$id.iv_progress);
this.k = (TextView) findViewById(R$id.tv_progress_txt);
this.l = (LinearLayout) findViewById(R$id.ll_lock_failed);
this.m = (TextView) findViewById(R$id.tv_unlock_fail_title);
this.n = (TextView) findViewById(R$id.tv_unlock_fail_reason);
SlideUnLockView slideUnLockView = (SlideUnLockView) findViewById(R$id.slide_unlock_view);
this.s = slideUnLockView;
slideUnLockView.setListener(this);
this.s.e();
}
public void v(boolean z) {
if (z) {
this.g.setVisibility(0);
this.h.setVisibility(0);
this.i.setVisibility(0);
this.u.removeMessages(99);
this.l.setVisibility(8);
this.m.setVisibility(8);
this.n.setVisibility(8);
return;
}
this.g.setVisibility(8);
this.h.setVisibility(8);
this.i.setVisibility(8);
this.l.setVisibility(0);
this.m.setVisibility(0);
this.n.setVisibility(0);
this.u.sendEmptyMessageDelayed(99, com.igexin.push.config.c.i);
}
static void w() {
Uri parse = Uri.parse("content://com.iflytek.mdmservice.provider.PolicyTempProvider/policy");
ContentProviderClient acquireContentProviderClient = MDMApp.j().getContentResolver().acquireContentProviderClient(parse);
if (acquireContentProviderClient != null) {
ContentValues contentValues = new ContentValues();
contentValues.put("device", "{11:0,12:0,13:0,16:0,17:0}");
contentValues.put("type", (Integer) 3);
try {
try {
acquireContentProviderClient.insert(parse, contentValues);
LogUtil.c(A, "disablePhysics");
if (acquireContentProviderClient == null) {
return;
}
} catch (RemoteException e) {
LogUtil.ce(A, "disablePhysics:" + e.getMessage());
if (acquireContentProviderClient == null) {
return;
}
}
acquireContentProviderClient.release();
} catch (Throwable th) {
if (acquireContentProviderClient != null) {
acquireContentProviderClient.release();
}
throw th;
}
}
}
static void x() {
Uri parse = Uri.parse("content://com.iflytek.mdmservice.provider.PolicyTempProvider/policy");
ContentProviderClient acquireContentProviderClient = MDMApp.j().getContentResolver().acquireContentProviderClient(parse);
if (acquireContentProviderClient != null) {
ContentValues contentValues = new ContentValues();
contentValues.put("device", "{11:0,12:0,13:1,16:0,17:0}");
contentValues.put("type", (Integer) 3);
try {
try {
acquireContentProviderClient.insert(parse, contentValues);
LogUtil.c(A, "disablePhysicsButBack");
if (acquireContentProviderClient == null) {
return;
}
} catch (RemoteException e) {
LogUtil.ce(A, "disablePhysicsButBack:" + e.getMessage());
if (acquireContentProviderClient == null) {
return;
}
}
acquireContentProviderClient.release();
} catch (Throwable th) {
if (acquireContentProviderClient != null) {
acquireContentProviderClient.release();
}
throw th;
}
}
}
static void y() {
Uri parse = Uri.parse("content://com.iflytek.mdmservice.provider.PolicyTempProvider/policy");
ContentProviderClient acquireContentProviderClient = MDMApp.j().getContentResolver().acquireContentProviderClient(parse);
if (acquireContentProviderClient != null) {
try {
try {
acquireContentProviderClient.delete(parse, "type=?", new String[]{AssistPushConsts.PUSHMESSAGE_ACTION_MULTI_BRAND_RECEIVE_XM});
LogUtil.c(A, "enablePhysics");
if (acquireContentProviderClient == null) {
return;
}
} catch (RemoteException e) {
LogUtil.ce(A, "enablePhysics:" + e.getMessage());
if (acquireContentProviderClient == null) {
return;
}
}
acquireContentProviderClient.release();
} catch (Throwable th) {
if (acquireContentProviderClient != null) {
acquireContentProviderClient.release();
}
throw th;
}
}
}
public TimeBean D(Date date) throws Exception {
TimeBean timeBean = new TimeBean();
timeBean.setTime(this.f553a.format(date));
timeBean.setDate(this.f554b.format(date));
timeBean.setWeek(r(date));
return timeBean;
}
public void E(TimeBean timeBean) throws Exception {
this.g.setText(timeBean.getTime());
this.h.setText(timeBean.getDate());
this.i.setText(timeBean.getWeek());
}
public void F(View view) {
if (ClickUtil.isFastClick()) {
LogUtil.d(A, "快速点击");
return;
}
Intent intent = new Intent("android.settings.WIFI_SETTINGS");
intent.putExtra("extra_prefs_show_button_bar", true);
intent.putExtra("extra_prefs_set_next_text", "完成");
intent.putExtra("extra_prefs_set_back_text", BuildConfig.FLAVOR);
intent.putExtra("wifi_enable_next_on_connect", true);
intent.addFlags(SQLiteDatabase.CREATE_IF_NECESSARY);
try {
if (intent.resolveActivity(getPackageManager()) != null) {
k();
L(true);
startActivity(intent);
} else {
Toast.makeText(this, R$string.open_wifi_setting_failed, 0).show();
}
} catch (Exception e) {
LogUtil.e(A, "onWifiClick: 启动wifi设置失败 " + e.getMessage());
}
}
public void G(View view) {
long[] jArr = this.r;
System.arraycopy(jArr, 1, jArr, 0, jArr.length - 1);
long[] jArr2 = this.r;
jArr2[jArr2.length - 1] = SystemClock.uptimeMillis();
if (this.r[0] >= SystemClock.uptimeMillis() - com.igexin.push.config.c.j) {
String str = "您已在[1500]ms内连续点击【" + this.r.length + "】次了!!!";
LogUtil.d(A, "lock oneclick " + str);
this.q = true;
}
}
public void H(View view) {
if (!this.q || this.r[0] <= SystemClock.uptimeMillis() - 2000) {
return;
}
this.q = false;
com.iflytek.mdmservice.utils.n.b(this, true);
L(true);
}
public void I() {
PowerManager powerManager = (PowerManager) getSystemService("power");
if (Build.VERSION.SDK_INT >= 20 ? powerManager.isInteractive() : powerManager.isScreenOn()) {
LogUtil.i(A, "lock activity");
Intent intent = new Intent(MDMApp.j(), (Class<?>) LockActivity.class);
intent.addFlags(SQLiteDatabase.CREATE_IF_NECESSARY);
intent.putExtra("lock_from", 3);
MDMApp.j().startActivity(intent);
}
}
public void J(DialogInterface dialogInterface) {
this.d.setEnabled(true);
}
public void O() {
Dialog dialog = this.z;
if (dialog == null || !dialog.isShowing()) {
if (this.z == null) {
?? r0 = new Object(this) {
private TextView f626a;
private TextView f627b;
private TextView f628c;
private TextView d;
private TextView e;
private TextView f;
private TextView g;
private ImageView h;
private String i;
private boolean j = true;
private Context k;
private View l;
private Dialog m;
class a implements View.OnClickListener {
a() {
}
@Override
public void onClick(View view) {
VersionDialog$Builder.this.m.dismiss();
}
}
class b implements DialogInterface.OnShowListener {
b() {
}
@Override
public void onShow(DialogInterface dialogInterface) {
String encrypt = AESUtils.encrypt(VersionDialog$Builder.this.i);
LogUtil.e("加密后:" + encrypt);
VersionDialog$Builder.this.h.setImageBitmap(com.iflytek.libzxing.activity.a.b(encrypt, 400, 400, (Bitmap) null));
}
}
{
this.k = this;
View inflate = View.inflate(this, R$layout.dialog_version, null);
this.l = inflate;
this.f626a = (TextView) inflate.findViewById(R$id.tv_mdmservice);
this.f627b = (TextView) this.l.findViewById(R$id.tv_mdmadmin);
this.f628c = (TextView) this.l.findViewById(R$id.tv_mdmstore);
this.d = (TextView) this.l.findViewById(R$id.tv_mdmdetection);
this.e = (TextView) this.l.findViewById(R$id.tv_login);
this.f = (TextView) this.l.findViewById(R$id.tv_disk);
this.g = (TextView) this.l.findViewById(R$id.tv_mac);
this.h = (ImageView) this.l.findViewById(R$id.iv_qrcode);
this.l.findViewById(R$id.tv_close).setOnClickListener(new a());
TextView textView = (TextView) this.l.findViewById(R$id.tv_login_stats);
UserInfo userInfo = UserInfoManager.getInstance().getUserInfo();
if (userInfo != null && userInfo.getStutas().intValue() == 0) {
textView.setVisibility(8);
} else {
textView.setVisibility(0);
textView.setText("未登录");
}
}
public Dialog d() {
Dialog dialog2 = new Dialog(this.k, 2131755212);
this.m = dialog2;
dialog2.setCancelable(this.j);
this.m.setCanceledOnTouchOutside(this.j);
this.m.addContentView(this.l, new ActionBar.LayoutParams(-1, -2));
this.m.setOnShowListener(new b());
return this.m;
}
public VersionDialog$Builder e(Boolean bool) {
this.j = bool.booleanValue();
return this;
}
public VersionDialog$Builder f(String str) {
this.i = str;
return this;
}
public VersionDialog$Builder g(String str, String str2, String str3, String str4, String str5, String str6, String str7) {
this.f626a.setText("1) " + str);
this.f627b.setText("2) " + str2);
this.e.setText("3) " + str5);
this.f.setText("4) " + str6);
this.f628c.setText("5) " + str3);
this.d.setText("6) " + str4);
this.g.setText("7) " + str7);
return this;
}
};
r0.e(Boolean.FALSE);
r0.g(ActivityUtils.getVersionName(this, "com.iflytek.mdmservice"), ActivityUtils.getVersionName(this, "com.iflytek.mdmadmin"), ActivityUtils.getVersionName(this, "com.iflytek.mdmstore"), ActivityUtils.getVersionName(this, "com.iflytek.mdmdetection"), ActivityUtils.getVersionName(this, "com.iflytek.iflylogin"), ActivityUtils.getVersionName(this, "com.android.iflylauncher3"), DeviceHelper.getWifiMac());
r0.f(o());
this.z = r0.d();
}
this.z.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public final void onDismiss(DialogInterface dialogInterface) {
LockActivity.this.J(dialogInterface);
}
});
this.z.show();
}
}
@Override
public void a() {
K("getDevStrategyListV4");
K("getUserStrategyListV4");
n();
}
@Override
public void b(float f) {
}
@Override
public void onBackPressed() {
}
@org.greenrobot.eventbus.l(threadMode = ThreadMode.MAIN)
public void onCloseEvent(com.iflytek.mdmservice.m.b bVar) {
LogUtil.i(A, "onCloseEvent to finish LockActivity");
m();
}
@Override
protected void onCreate(@Nullable Bundle bundle) {
if (Build.VERSION.SDK_INT >= 27) {
setShowWhenLocked(true);
} else {
getWindow().addFlags(524288);
}
super.onCreate(bundle);
com.iflytek.mdmservice.utils.c.a().d(this);
org.greenrobot.eventbus.c.c().o(this);
setContentView(R$layout.activity_lock);
u();
t();
s();
j();
Intent intent = getIntent();
if (intent != null) {
LogUtil.c("lock_activity", intent.getIntExtra("lock_from", 0) + BuildConfig.FLAVOR);
}
LogUtil.i(A, "onCreate");
if (Utils.get24HourMode(this)) {
this.f553a = new SimpleDateFormat("HH:mm", Locale.getDefault());
} else {
this.f553a = new SimpleDateFormat("hh:mm", Locale.getDefault());
}
}
@Override
protected void onDestroy() {
LogUtil.i(A, "LockActivity.onDestroy");
org.greenrobot.eventbus.c.c().q(this);
this.t.dispose();
l();
com.iflytek.mdmservice.utils.c.a().c(this);
super.onDestroy();
}
@Override
public boolean onKeyDown(int i, KeyEvent keyEvent) {
if (i == 4) {
return true;
}
return super.onKeyDown(i, keyEvent);
}
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
LogUtil.z(A + " onNewIntent");
setIntent(intent);
LogUtil.i(A, "onNewIntent" + getTaskId());
}
@Override
protected void onPause() {
super.onPause();
LogUtil.i(A, "LockActivity.onPause");
}
@Override
protected void onResume() {
super.onResume();
j();
L(false);
if (Build.VERSION.SDK_INT >= 21) {
getWindow().setStatusBarColor(getResources().getColor(R$color.contents_text));
}
}
@Override
protected void onStop() {
super.onStop();
LogUtil.i(A, "LockActivity.onStop");
if (SpHelper.getInt("device_status", 1) != 0 || B) {
return;
}
this.u.postDelayed(new Runnable() {
@Override
public final void run() {
LockActivity.this.I();
}
}, 0L);
}
public io.reactivex.e<TimeBean> p() {
return io.reactivex.e.e(1L, TimeUnit.SECONDS).f(new io.reactivex.w.h() {
@Override
public final Object apply(Object obj) {
return LockActivity.A((Long) obj);
}
}).b(new io.reactivex.w.i() {
@Override
public final boolean test(Object obj) {
return LockActivity.B((LongSparseArray) obj);
}
}).f(new io.reactivex.w.h() {
@Override
public final Object apply(Object obj) {
return LockActivity.C((LongSparseArray) obj);
}
}).f(new io.reactivex.w.h() {
@Override
public final Object apply(Object obj) {
return new Date(((Long) obj).longValue());
}
}).f(new io.reactivex.w.h() {
@Override
public final Object apply(Object obj) {
return LockActivity.this.D((Date) obj);
}
});
}
public String r(Date date) {
String[] strArr = {"星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"};
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
int i = calendar.get(7) - 1;
if (i < 0) {
i = 0;
}
return strArr[i];
}
@org.greenrobot.eventbus.l(threadMode = ThreadMode.MAIN)
public void onCloseEvent(com.iflytek.mdmservice.m.c cVar) {
int a2 = cVar.a();
if (a2 == 1) {
this.u.sendEmptyMessage(1);
return;
}
if (a2 == 2) {
this.u.sendEmptyMessage(2);
return;
}
if (a2 == 3) {
this.u.sendEmptyMessage(3);
return;
}
if (a2 == 4) {
this.u.sendEmptyMessage(4);
} else if (a2 != 5) {
this.u.sendEmptyMessage(6);
} else {
this.u.sendEmptyMessage(5);
}
}
}