Commit 3ebc0037 authored by qq247321453's avatar qq247321453

收藏,加载卡片出错

parent 6871b826
......@@ -76,7 +76,7 @@ public class CardFavorites {
List<String> lines;
if (config.exists()) {
//重命名
if(config.renameTo(AppsSettings.get().getSystemConfig())) {
if(!config.renameTo(AppsSettings.get().getSystemConfig())) {
try {
FileUtils.copyFile(AppsSettings.get().getFavoriteFile().getPath(), AppsSettings.get().getSystemConfig().getPath());
} catch (IOException e) {
......
......@@ -5,6 +5,7 @@ import android.graphics.DashPathEffect;
import android.graphics.Paint;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.Gravity;
import android.view.Menu;
import android.view.MenuItem;
......@@ -12,6 +13,7 @@ import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
......@@ -30,6 +32,7 @@ import com.ourygo.assistant.util.DuelAssistantManagement;
import java.util.List;
import cn.garymb.ygomobile.Constants;
import cn.garymb.ygomobile.core.IrrlichtBridge;
import cn.garymb.ygomobile.lite.R;
import cn.garymb.ygomobile.loader.CardLoader;
import cn.garymb.ygomobile.loader.ImageLoader;
......@@ -105,6 +108,9 @@ public class CardSearchActivity extends BaseActivity implements CardLoader.CallB
if (mLimitManager.getCount() > 0) {
mCardLoader.setLimitList(mLimitManager.getTopLimit());
}
}).fail((e)->{
Toast.makeText(this, R.string.tip_load_cdb_error, Toast.LENGTH_SHORT).show();
Log.e(IrrlichtBridge.TAG, "load cdb", e);
}).done((rs) -> {
dlg.dismiss();
isLoad = true;
......
......@@ -318,4 +318,5 @@
<string name="label_ot_No_Exclusive">ID 없는 카드</string>
<string name="label_ot_CUSTOM">커스텀 카드</string>
<string name="settings_screen_padding">曲面屏预留高度</string>
<string name="tip_load_cdb_error">加载数据出错</string>
</resources>
......@@ -318,4 +318,5 @@
<string name="about_delete_ex">如果遇到拓展卡包问题时删除是个不错的办法</string>
<string name="file_installed">文件已导入</string>
<string name="settings_screen_padding">曲面屏预留高度</string>
<string name="tip_load_cdb_error">加载数据出错</string>
</resources>
......@@ -328,4 +328,5 @@
<string name="label_ot_No_Exclusive">No exclusive</string>
<string name="label_ot_SC_OCG">SChinese OCG</string>
<string name="settings_screen_padding">Reserved height of curved screen</string>
<string name="tip_load_cdb_error">加载数据出错</string>
</resources>
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