Commit 958d5ef6 authored by fallenstardust's avatar fallenstardust
parents c46562b4 2dcd855d
package cn.garymb.ygomobile.ex_card;
import static cn.garymb.ygomobile.Constants.ASSET_SERVER_LIST;
import static cn.garymb.ygomobile.Constants.URL_YGO233_ADVANCE;
import static cn.garymb.ygomobile.Constants.URL_YGO233_FILE;
import static cn.garymb.ygomobile.Constants.URL_YGO233_FILE_ALT;
import static cn.garymb.ygomobile.utils.DownloadUtil.TYPE_DOWNLOAD_EXCEPTION;
......@@ -144,7 +145,8 @@ public class ExCardListFragment extends Fragment implements View.OnClickListener
} else if (ServerUtil.exCardState == ServerUtil.ExCardState.NEED_UPDATE) {
textDownload.setText(R.string.Download);
} else if (ServerUtil.exCardState == ServerUtil.ExCardState.ERROR) {
Toast.makeText(getActivity(), "无法获取服务器先行卡信息", Toast.LENGTH_LONG).show();
Toast.makeText(getActivity(), R.string.ex_card_check_toast_message_iii, Toast.LENGTH_LONG).show();
WebActivity.open(getActivity(), getString(R.string.ex_card_list_title), URL_YGO233_ADVANCE);
}
}
//TODO eventbus receive event
......
......@@ -286,7 +286,7 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
} else if (ServerUtil.exCardState == ServerUtil.ExCardState.NEED_UPDATE) {
ll_new_notice.setVisibility(View.VISIBLE);
} else if (ServerUtil.exCardState == ServerUtil.ExCardState.ERROR) {
Toast.makeText(getActivity(), "无法获取服务器先行卡信息", Toast.LENGTH_SHORT).show();
Toast.makeText(getActivity(), R.string.ex_card_check_toast_message_iii, Toast.LENGTH_SHORT).show();
ll_new_notice.setVisibility(View.GONE);
}
......
......@@ -44,6 +44,7 @@
<string name="ex_card_report_title">보고</string>
<string name="ex_card_check_toast_message">이 서버에 들어가기 전에 먼저 설정에서 "프리릴리즈 카드 팩 활성화"를 클릭하십시오.</string>
<string name="ex_card_check_toast_message_ii">이 서버에 들어가기 전에 먼저 프리릴리즈 카드 팩을 다운로드하십시오.</string>
<string name="ex_card_check_toast_message_iii">obtain expansion cards failed, opening 233 website to download now.</string>
<!-- settings -->
<string name="settings_about">정보</string>
......
......@@ -44,6 +44,7 @@
<string name="ex_card_report_title">反馈</string>
<string name="ex_card_check_toast_message">未开启扩展卡包会在该服务器遇到未知卡,推荐开启扩展卡包后再进入</string>
<string name="ex_card_check_toast_message_ii">未下载扩展卡包会在该服务器遇到未知卡,推荐下载扩展卡包后再进入</string>
<string name="ex_card_check_toast_message_iii">未获取到先行卡信息,将跳转233官网下载</string>
<!-- settings -->
<string name="settings_about">关于</string>
......
......@@ -51,6 +51,7 @@
<string name="ex_card_report_title">Reoprt</string>
<string name="ex_card_check_toast_message">before join in this server, please "used Expansions" in settings first</string>
<string name="ex_card_check_toast_message_ii">before join in this server, please download expansions first</string>
<string name="ex_card_check_toast_message_iii">obtain expansion cards failed, opening 233 website to download now.</string>
<!-- settings -->
<string name="settings_about">About</string>
<string name="settings_about_sub_about">About</string>
......
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