Initialize local project and fix ranch growth synchronization
This commit is contained in:
@@ -0,0 +1,584 @@
|
||||
package com.diyidan.game.util;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.ClipData;
|
||||
import android.content.ClipboardManager;
|
||||
import android.content.ComponentName;
|
||||
import android.content.ContentValues;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.content.pm.ResolveInfo;
|
||||
import android.net.ConnectivityManager;
|
||||
import android.net.NetworkInfo;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.provider.MediaStore;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.view.View;
|
||||
import android.view.WindowManager;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import com.diyidan.game.common.Constants;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.lang.reflect.Field;
|
||||
import java.security.MessageDigest;
|
||||
import java.sql.Timestamp;
|
||||
import java.text.DecimalFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.Enumeration;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipFile;
|
||||
import org.zengrong.ane.funs.pref.PreferenceType;
|
||||
|
||||
/* JADX INFO: loaded from: C:\Users\11789\Documents\Projects\Codex_ws\myrzx_fang\analysis\base_classes.dex */
|
||||
public class Utils {
|
||||
private static final String[] strSplits = "1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM".split("");
|
||||
private static final Random random = new Random();
|
||||
private static final Pattern mobilePattern = Pattern.compile("^1[23456789][0-9]{9}$");
|
||||
private static final Pattern numberPattern = Pattern.compile("^[0-9]+$");
|
||||
private static final Pattern colorPattern = Pattern.compile("^#[a-fA-F0-9]{3}([a-fA-F0-9]{3})?$");
|
||||
private static final Pattern fontPattern = Pattern.compile("^[1-9]?[0-9]sp$");
|
||||
private static final Pattern emailPattern = Pattern.compile("^[\\w._-]+@[\\w._-]*[a-z]{2,4}$");
|
||||
public static final SimpleDateFormat standardDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||
private static VersionInfo mVersionInfo = null;
|
||||
private static String sDevId = null;
|
||||
|
||||
public static int firstIndexOfElement(List<?> list, Object obj) {
|
||||
if (isListEmpty(list)) {
|
||||
return -1;
|
||||
}
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
if (list.get(i).equals(obj)) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public static int firstIndexOfElement(Object[] objArr, Object obj) {
|
||||
if (isArrayEmpty(objArr)) {
|
||||
return -1;
|
||||
}
|
||||
for (int i = 0; i < objArr.length; i++) {
|
||||
if (objArr[i].equals(obj)) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public static int firstIndexOfElement(String[] strArr, String str) {
|
||||
if (strArr == null || str == null) {
|
||||
return -1;
|
||||
}
|
||||
int length = strArr.length;
|
||||
for (int i = 0; i < length; i++) {
|
||||
if (str.equals(strArr[i])) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public static int firstIndexOfElement(int[] iArr, int i) {
|
||||
if (iArr == null) {
|
||||
return -1;
|
||||
}
|
||||
int length = iArr.length;
|
||||
for (int i2 = 0; i2 < length; i2++) {
|
||||
if (i == iArr[i2]) {
|
||||
return i2;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public static boolean isListEmpty(List list) {
|
||||
return list == null || list.size() == 0;
|
||||
}
|
||||
|
||||
public static boolean isArrayEmpty(Object[] objArr) {
|
||||
return objArr == null || objArr.length == 0;
|
||||
}
|
||||
|
||||
public static int dip2px(Context context, float f) {
|
||||
return (int) ((f * context.getResources().getDisplayMetrics().density) + 0.5f);
|
||||
}
|
||||
|
||||
public static int px2dip(Context context, float f) {
|
||||
return (int) ((f / context.getResources().getDisplayMetrics().density) + 0.5f);
|
||||
}
|
||||
|
||||
public static int getScreenWidth(Context context) {
|
||||
return context.getResources().getDisplayMetrics().widthPixels;
|
||||
}
|
||||
|
||||
public static int getScreenHeight(Context context) {
|
||||
return context.getResources().getDisplayMetrics().heightPixels;
|
||||
}
|
||||
|
||||
public static String getDeviceId(Context context) {
|
||||
if (context == null || sDevId != null) {
|
||||
return sDevId;
|
||||
}
|
||||
return "ffffffff-35" + (Build.BOARD.length() % 10) + (Build.BRAND.length() % 10) + (Build.CPU_ABI.length() % 10) + (Build.DEVICE.length() % 10) + (Build.DISPLAY.length() % 10) + (Build.HOST.length() % 10) + (Build.ID.length() % 10) + (Build.MANUFACTURER.length() % 10) + (Build.MODEL.length() % 10) + (Build.PRODUCT.length() % 10) + (Build.TAGS.length() % 10) + (Build.TYPE.length() % 10) + (Build.USER.length() % 10) + "-00000000000";
|
||||
}
|
||||
|
||||
public static float getDensity(Context context) {
|
||||
DisplayMetrics displayMetrics = new DisplayMetrics();
|
||||
((WindowManager) context.getSystemService("window")).getDefaultDisplay().getMetrics(displayMetrics);
|
||||
return displayMetrics.density;
|
||||
}
|
||||
|
||||
public static String getVersionName(Context context) {
|
||||
if (mVersionInfo == null) {
|
||||
initVersionInfo(context);
|
||||
}
|
||||
return mVersionInfo.versionName;
|
||||
}
|
||||
|
||||
public static int getVersionCode(Context context) {
|
||||
if (mVersionInfo == null) {
|
||||
initVersionInfo(context);
|
||||
}
|
||||
return mVersionInfo.versionCode;
|
||||
}
|
||||
|
||||
public static String getAppChannel(Context context) {
|
||||
if (mVersionInfo == null) {
|
||||
initVersionInfo(context);
|
||||
}
|
||||
return mVersionInfo.appChannel;
|
||||
}
|
||||
|
||||
private static void initVersionInfo(Context context) {
|
||||
try {
|
||||
PackageInfo packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
|
||||
context.getPackageManager().getApplicationInfo(context.getPackageName(), 128);
|
||||
VersionInfo versionInfo = new VersionInfo();
|
||||
mVersionInfo = versionInfo;
|
||||
versionInfo.versionCode = packageInfo.versionCode;
|
||||
mVersionInfo.versionName = packageInfo.versionName;
|
||||
mVersionInfo.firstInstallTime = packageInfo.firstInstallTime;
|
||||
mVersionInfo.lastUpdateTime = packageInfo.lastUpdateTime;
|
||||
mVersionInfo.appChannel = getDydGameChannel(context);
|
||||
if (isNull(mVersionInfo.appChannel)) {
|
||||
mVersionInfo.appChannel = "dydGameSdk";
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
static class VersionInfo {
|
||||
public String versionName = "";
|
||||
public int versionCode = 0;
|
||||
public String appChannel = "";
|
||||
public long firstInstallTime = 0;
|
||||
public long lastUpdateTime = 0;
|
||||
|
||||
VersionInfo() {
|
||||
}
|
||||
}
|
||||
|
||||
public static void openApp(Context context, String str) throws PackageManager.NameNotFoundException {
|
||||
PackageInfo packageInfo = context.getPackageManager().getPackageInfo(str, 0);
|
||||
Intent intent = new Intent("android.intent.action.MAIN", (Uri) null);
|
||||
intent.addCategory("android.intent.category.LAUNCHER");
|
||||
intent.setPackage(packageInfo.packageName);
|
||||
for (ResolveInfo resolveInfo : context.getPackageManager().queryIntentActivities(intent, 0)) {
|
||||
if (resolveInfo != null) {
|
||||
String str2 = resolveInfo.activityInfo.packageName;
|
||||
String str3 = resolveInfo.activityInfo.name;
|
||||
Intent intent2 = new Intent("android.intent.action.MAIN");
|
||||
intent2.setFlags(268435456);
|
||||
intent2.addCategory("android.intent.category.LAUNCHER");
|
||||
intent2.setComponent(new ComponentName(str2, str3));
|
||||
context.startActivity(intent2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isNull(CharSequence charSequence) {
|
||||
return charSequence == null || "".equals(charSequence.toString().trim()) || "null".equals(charSequence);
|
||||
}
|
||||
|
||||
public static boolean isNullExists(CharSequence... charSequenceArr) {
|
||||
if (charSequenceArr == null || charSequenceArr.length == 0) {
|
||||
return true;
|
||||
}
|
||||
for (CharSequence charSequence : charSequenceArr) {
|
||||
if (charSequence == null || "".equals(charSequence.toString().trim()) || "null".equals(charSequence)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void copyTextToClipBoard(Context context, String str) {
|
||||
if (context == null || str == null) {
|
||||
return;
|
||||
}
|
||||
((ClipboardManager) context.getSystemService("clipboard")).setPrimaryClip(ClipData.newPlainText(str, str));
|
||||
}
|
||||
|
||||
public static String joinList(List list, String str) {
|
||||
if (list == null || list.size() == 0) {
|
||||
return null;
|
||||
}
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
stringBuffer.append(list.get(0));
|
||||
int size = list.size();
|
||||
for (int i = 1; i < size; i++) {
|
||||
stringBuffer.append(str);
|
||||
stringBuffer.append(list.get(i));
|
||||
}
|
||||
return stringBuffer.toString();
|
||||
}
|
||||
|
||||
public static void launchActivityForResult(Activity activity, Class<?> cls, int i) {
|
||||
Intent intent = new Intent(activity, cls);
|
||||
intent.addFlags(65536);
|
||||
activity.startActivityForResult(intent, i);
|
||||
}
|
||||
|
||||
public static Uri launchActivityForResult(Activity activity, Intent intent, int i) {
|
||||
String str = new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss").format(new Date());
|
||||
ContentValues contentValues = new ContentValues();
|
||||
contentValues.put("title", str);
|
||||
Uri uriInsert = activity.getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, contentValues);
|
||||
intent.putExtra("output", uriInsert);
|
||||
activity.startActivityForResult(intent, i);
|
||||
return uriInsert;
|
||||
}
|
||||
|
||||
public static String generateTempFileName(String str, int i) {
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
for (int i2 = 0; i2 < i; i2++) {
|
||||
String[] strArr = strSplits;
|
||||
stringBuffer.append(strArr[random.nextInt(strArr.length - 2) + 1]);
|
||||
}
|
||||
if (str != null) {
|
||||
stringBuffer.append(str);
|
||||
}
|
||||
return stringBuffer.toString();
|
||||
}
|
||||
|
||||
public static boolean isMobileValid(String str) {
|
||||
return mobilePattern.matcher(str).find();
|
||||
}
|
||||
|
||||
public static boolean isNumberValid(String str) {
|
||||
return numberPattern.matcher(str).find();
|
||||
}
|
||||
|
||||
public static boolean isEmailValid(String str) {
|
||||
return emailPattern.matcher(str).find();
|
||||
}
|
||||
|
||||
public static int getRandomIntOfARange(int i) {
|
||||
return random.nextInt(i);
|
||||
}
|
||||
|
||||
public static String getMetaValue(Context context, String str) {
|
||||
if (context == null || str == null) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
ApplicationInfo applicationInfo = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128);
|
||||
Bundle bundle = applicationInfo != null ? applicationInfo.metaData : null;
|
||||
if (bundle != null) {
|
||||
return bundle.getString(str);
|
||||
}
|
||||
return null;
|
||||
} catch (PackageManager.NameNotFoundException unused) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static int sp2px(Context context, float f) {
|
||||
return (int) ((f * context.getResources().getDisplayMetrics().scaledDensity) + 0.5f);
|
||||
}
|
||||
|
||||
public static boolean isNetworkConnected(Context context) {
|
||||
NetworkInfo activeNetworkInfo;
|
||||
if (context == null || (activeNetworkInfo = ((ConnectivityManager) context.getSystemService("connectivity")).getActiveNetworkInfo()) == null) {
|
||||
return false;
|
||||
}
|
||||
return activeNetworkInfo.isAvailable();
|
||||
}
|
||||
|
||||
public static boolean isWifi(Context context) {
|
||||
NetworkInfo activeNetworkInfo = ((ConnectivityManager) context.getSystemService("connectivity")).getActiveNetworkInfo();
|
||||
return activeNetworkInfo != null && activeNetworkInfo.getType() == 1;
|
||||
}
|
||||
|
||||
public static String getCurrentDate() {
|
||||
return standardDateFormat.format(new Date());
|
||||
}
|
||||
|
||||
public static boolean isScreenOriatationPortrait(Context context) {
|
||||
return context.getResources().getConfiguration().orientation == 1;
|
||||
}
|
||||
|
||||
public static String getExtensionName(String str) {
|
||||
int iLastIndexOf;
|
||||
return (str == null || str.length() <= 0 || (iLastIndexOf = str.lastIndexOf(46)) <= -1 || iLastIndexOf >= str.length() + (-1)) ? str : str.substring(iLastIndexOf + 1);
|
||||
}
|
||||
|
||||
public static ArrayList trimSubListInRange(List list, int i, int i2, int i3) {
|
||||
if (list == null || i < 0 || i >= list.size() || i2 < 0 || i3 < 0) {
|
||||
return new ArrayList(list);
|
||||
}
|
||||
int i4 = i - i2;
|
||||
if (i4 < 0) {
|
||||
i4 = 0;
|
||||
}
|
||||
int size = i + i3;
|
||||
if (size >= list.size()) {
|
||||
size = list.size() - 1;
|
||||
}
|
||||
if (i4 == 0 && size == list.size() - 1) {
|
||||
return new ArrayList(list);
|
||||
}
|
||||
return new ArrayList(list.subList(i4, size + 1));
|
||||
}
|
||||
|
||||
public static String getTimestamp() {
|
||||
return String.valueOf(new Timestamp(System.currentTimeMillis()).getTime());
|
||||
}
|
||||
|
||||
public static String getFileName(String str) {
|
||||
String[] strArrSplit = str.split("\\.");
|
||||
if (strArrSplit.length < 2) {
|
||||
return "";
|
||||
}
|
||||
String str2 = strArrSplit[strArrSplit.length - 2];
|
||||
int iLastIndexOf = str2.lastIndexOf(47) + 1;
|
||||
return iLastIndexOf > 0 ? str2.substring(iLastIndexOf) : "";
|
||||
}
|
||||
|
||||
public static String getFileAppendix(String str) {
|
||||
String[] strArrSplit = str.split("\\.");
|
||||
if (strArrSplit.length < 2) {
|
||||
return null;
|
||||
}
|
||||
return "." + strArrSplit[strArrSplit.length - 1];
|
||||
}
|
||||
|
||||
public static void showKeyBoard(Activity activity, View view) {
|
||||
InputMethodManager inputMethodManager = (InputMethodManager) activity.getSystemService("input_method");
|
||||
inputMethodManager.showSoftInput(view, 2);
|
||||
inputMethodManager.toggleSoftInput(2, 1);
|
||||
}
|
||||
|
||||
public static void hideKeyBoard(Activity activity, View view) {
|
||||
((InputMethodManager) activity.getSystemService("input_method")).hideSoftInputFromWindow(view.getWindowToken(), 0);
|
||||
}
|
||||
|
||||
public static void hideInputManager(Context context) {
|
||||
if (context == null) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
View currentFocus = ((Activity) context).getCurrentFocus();
|
||||
if (currentFocus != null && currentFocus.getWindowToken() != null) {
|
||||
InputMethodManager inputMethodManager = (InputMethodManager) context.getSystemService("input_method");
|
||||
if (inputMethodManager.hideSoftInputFromWindow(currentFocus.getWindowToken(), 0)) {
|
||||
return;
|
||||
}
|
||||
inputMethodManager.hideSoftInputFromWindow(currentFocus.getWindowToken(), 2);
|
||||
}
|
||||
} catch (Exception unused) {
|
||||
}
|
||||
}
|
||||
|
||||
public static void showInputManager(Context context) {
|
||||
if (context == null) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
View currentFocus = ((Activity) context).getCurrentFocus();
|
||||
if (currentFocus != null && currentFocus.getWindowToken() != null) {
|
||||
((InputMethodManager) context.getSystemService("input_method")).toggleSoftInputFromWindow(currentFocus.getWindowToken(), 2, 2);
|
||||
}
|
||||
} catch (Exception unused) {
|
||||
}
|
||||
}
|
||||
|
||||
public static String getFileMD5(File file) {
|
||||
if (!file.isFile()) {
|
||||
return null;
|
||||
}
|
||||
byte[] bArr = new byte[1024];
|
||||
try {
|
||||
MessageDigest messageDigest = MessageDigest.getInstance("MD5");
|
||||
FileInputStream fileInputStream = new FileInputStream(file);
|
||||
while (true) {
|
||||
int i = fileInputStream.read(bArr, 0, 1024);
|
||||
if (i != -1) {
|
||||
messageDigest.update(bArr, 0, i);
|
||||
} else {
|
||||
fileInputStream.close();
|
||||
return toHex(messageDigest.digest());
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static String toHex(byte[] bArr) {
|
||||
StringBuffer stringBuffer = new StringBuffer(bArr.length * 2);
|
||||
for (int i = 0; i < bArr.length; i++) {
|
||||
stringBuffer.append(Character.forDigit((bArr[i] & 240) >> 4, 16));
|
||||
stringBuffer.append(Character.forDigit(bArr[i] & 15, 16));
|
||||
}
|
||||
return stringBuffer.toString();
|
||||
}
|
||||
|
||||
public static String formatTo2Digits(double d) {
|
||||
return new DecimalFormat("##0.00").format(d);
|
||||
}
|
||||
|
||||
public static int getDrawablelId(Context context, String str) {
|
||||
return context.getResources().getIdentifier(str, "drawable", context.getPackageName());
|
||||
}
|
||||
|
||||
public static int getLayoutId(Context context, String str) {
|
||||
return context.getResources().getIdentifier(str, "layout", context.getPackageName());
|
||||
}
|
||||
|
||||
public static int getViewId(Context context, String str) {
|
||||
return context.getResources().getIdentifier(str, "id", context.getPackageName());
|
||||
}
|
||||
|
||||
public static int getStringlId(Context context, String str) {
|
||||
return context.getResources().getIdentifier(str, PreferenceType.STRING, context.getPackageName());
|
||||
}
|
||||
|
||||
public static int getColorId(Context context, String str) {
|
||||
return context.getResources().getIdentifier(str, "color", context.getPackageName());
|
||||
}
|
||||
|
||||
public static int getStyleId(Context context, String str) {
|
||||
return context.getResources().getIdentifier(str, "style", context.getPackageName());
|
||||
}
|
||||
|
||||
public static int getDimenId(Context context, String str) {
|
||||
return context.getResources().getIdentifier(str, "dimen", context.getPackageName());
|
||||
}
|
||||
|
||||
public static int getDimen(Context context, String str) {
|
||||
return (int) context.getResources().getDimension(context.getResources().getIdentifier(str, "dimen", context.getPackageName()));
|
||||
}
|
||||
|
||||
public static int[] getResourceDeclareStyleableIntArray(Context context, String str) {
|
||||
try {
|
||||
for (Field field : Class.forName(context.getPackageName() + ".R$styleable").getFields()) {
|
||||
if (field.getName().equals(str)) {
|
||||
return (int[]) field.get(null);
|
||||
}
|
||||
}
|
||||
} catch (Throwable unused) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static boolean isAppInstalled(Context context, String str) {
|
||||
try {
|
||||
context.getPackageManager().getPackageInfo(str, 0);
|
||||
return true;
|
||||
} catch (Exception unused) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isDydAppInstalled(Context context) {
|
||||
try {
|
||||
context.getPackageManager().getPackageInfo(Constants.DYD_PACKAGE_NAME, 0);
|
||||
return true;
|
||||
} catch (Exception unused) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r0v3, types: [java.lang.String] */
|
||||
/* JADX WARN: Type inference failed for: r1v1 */
|
||||
/* JADX WARN: Type inference failed for: r1v2 */
|
||||
/* JADX WARN: Type inference failed for: r1v3, types: [java.util.zip.ZipFile] */
|
||||
/* JADX WARN: Type inference failed for: r1v6, types: [java.lang.Object[], java.lang.String[]] */
|
||||
/* JADX WARN: Type inference failed for: r1v7 */
|
||||
private static String getDydGameChannel(Context context) throws Throwable {
|
||||
String name;
|
||||
if (context == null || context.getApplicationInfo() == null) {
|
||||
return "";
|
||||
}
|
||||
?? Split = 0;
|
||||
ZipFile zipFile = null;
|
||||
try {
|
||||
try {
|
||||
ZipFile zipFile2 = new ZipFile(context.getApplicationInfo().sourceDir);
|
||||
try {
|
||||
Enumeration<? extends ZipEntry> enumerationEntries = zipFile2.entries();
|
||||
while (true) {
|
||||
if (!enumerationEntries.hasMoreElements()) {
|
||||
name = "";
|
||||
break;
|
||||
}
|
||||
ZipEntry zipEntryNextElement = enumerationEntries.nextElement();
|
||||
if (zipEntryNextElement != null && zipEntryNextElement.getName() != null && zipEntryNextElement.getName().startsWith("META-INF/dyd_")) {
|
||||
name = zipEntryNextElement.getName();
|
||||
break;
|
||||
}
|
||||
}
|
||||
try {
|
||||
zipFile2.close();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
} catch (Exception e2) {
|
||||
e = e2;
|
||||
zipFile = zipFile2;
|
||||
e.printStackTrace();
|
||||
if (zipFile != null) {
|
||||
try {
|
||||
zipFile.close();
|
||||
} catch (Exception e3) {
|
||||
e3.printStackTrace();
|
||||
}
|
||||
}
|
||||
name = "";
|
||||
} catch (Throwable th) {
|
||||
th = th;
|
||||
Split = zipFile2;
|
||||
if (Split != 0) {
|
||||
try {
|
||||
Split.close();
|
||||
} catch (Exception e4) {
|
||||
e4.printStackTrace();
|
||||
}
|
||||
}
|
||||
throw th;
|
||||
}
|
||||
} catch (Throwable th2) {
|
||||
th = th2;
|
||||
}
|
||||
} catch (Exception e5) {
|
||||
e = e5;
|
||||
}
|
||||
Split = name.split("_");
|
||||
return (isArrayEmpty(Split) || Split.length < 2) ? "" : name.substring(Split[0].length() + 1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user