Commit ec089131 authored by fallenstardust's avatar fallenstardust

revert 强制复制pics

*直接录像、决斗助手启动ygopro会来不及载图
parent 3f746924
...@@ -271,7 +271,7 @@ public class ResCheckTask extends AsyncTask<Void, Integer, Integer> { ...@@ -271,7 +271,7 @@ public class ResCheckTask extends AsyncTask<Void, Integer, Integer> {
if (IOUtils.hasAssets(mContext, getDatapath(Constants.CORE_PICS_ZIP))) { if (IOUtils.hasAssets(mContext, getDatapath(Constants.CORE_PICS_ZIP))) {
setMessage(mContext.getString(R.string.check_things, mContext.getString(R.string.images))); setMessage(mContext.getString(R.string.check_things, mContext.getString(R.string.images)));
IOUtils.copyFilesFromAssets(mContext, getDatapath(Constants.CORE_PICS_ZIP), IOUtils.copyFilesFromAssets(mContext, getDatapath(Constants.CORE_PICS_ZIP),
resPath, true); resPath, needsUpdate);
} }
//复制人机资源 //复制人机资源
IOUtils.copyFilesFromAssets(mContext, getDatapath(Constants.WINDBOT_PATH), mSettings.getResourcePath(), needsUpdate); IOUtils.copyFilesFromAssets(mContext, getDatapath(Constants.WINDBOT_PATH), mSettings.getResourcePath(), needsUpdate);
......
package cn.garymb.ygomobile.utils; package cn.garymb.ygomobile.utils;
import static cn.garymb.ygomobile.lite.R.string.please_select_target_category;
import android.content.Context; import android.content.Context;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.os.Build; import android.os.Build;
...@@ -23,7 +21,6 @@ import androidx.recyclerview.widget.RecyclerView; ...@@ -23,7 +21,6 @@ import androidx.recyclerview.widget.RecyclerView;
import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.listener.OnItemLongClickListener; import com.chad.library.adapter.base.listener.OnItemLongClickListener;
import com.feihua.dialogutils.util.DialogUtils;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
...@@ -32,7 +29,6 @@ import java.util.List; ...@@ -32,7 +29,6 @@ import java.util.List;
import cn.garymb.ygomobile.AppsSettings; import cn.garymb.ygomobile.AppsSettings;
import cn.garymb.ygomobile.Constants; import cn.garymb.ygomobile.Constants;
import cn.garymb.ygomobile.adapter.TextBaseAdapter;
import cn.garymb.ygomobile.bean.DeckType; import cn.garymb.ygomobile.bean.DeckType;
import cn.garymb.ygomobile.bean.events.DeckFile; import cn.garymb.ygomobile.bean.events.DeckFile;
import cn.garymb.ygomobile.lite.R; import cn.garymb.ygomobile.lite.R;
...@@ -49,15 +45,6 @@ public class YGODialogUtil { ...@@ -49,15 +45,6 @@ public class YGODialogUtil {
viewHolder.show(); viewHolder.show();
} }
public static ListView dialogl(Context context, String title, String[] list) {
DialogUtils dialogUtils = DialogUtils.getInstance(context);
ListView listView = dialogUtils.dialogl1(title, new TextBaseAdapter(context, list,
YGOUtil.c(R.color.white), 10, 20, 10, 20));
dialogUtils.setDialogBackgroundResource(R.drawable.window2s);
dialogUtils.setTitleColor(YGOUtil.c(R.color.holo_blue_light));
return listView;
}
public interface OnDeckMenuListener { public interface OnDeckMenuListener {
void onDeckSelect(DeckFile deckFile); void onDeckSelect(DeckFile deckFile);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment