Commit 1dfdc0e6 authored by fallenstardust's avatar fallenstardust

填坑 韩文strings

parent f101dc1b
This diff is collapsed.
...@@ -143,9 +143,8 @@ public interface Constants { ...@@ -143,9 +143,8 @@ public interface Constants {
int DECK_SIDE_MAX = 15; int DECK_SIDE_MAX = 15;
int DECK_EXTRA_COUNT = (DECK_SIDE_MAX / DECK_WIDTH_COUNT * DECK_WIDTH_COUNT < DECK_SIDE_MAX) ? DECK_WIDTH_COUNT * 2 : DECK_WIDTH_COUNT; int DECK_EXTRA_COUNT = (DECK_SIDE_MAX / DECK_WIDTH_COUNT * DECK_WIDTH_COUNT < DECK_SIDE_MAX) ? DECK_WIDTH_COUNT * 2 : DECK_WIDTH_COUNT;
int DECK_SIDE_COUNT = DECK_EXTRA_COUNT; int DECK_SIDE_COUNT = DECK_EXTRA_COUNT;
String URL_PGYER_CN= "https://www.pgyer.com/ygomobilecn"; String URL_DONATE_CN= "https://afdian.net/@ygomobile";
String URL_PGYER_EN= "https://www.pgyer.com/ygomobileen"; String URL_DONATE= "https://www.paypal.me/ygomobile1";
String URL_PGYER_KO= "https://www.pgyer.com/ygomobileko";
String URL_HELP = "http://note.youdao.com/noteshare?id=8ae2dc824b7dc04a95a4665a938e2251"; String URL_HELP = "http://note.youdao.com/noteshare?id=8ae2dc824b7dc04a95a4665a938e2251";
String URL_MASTERRULE_CN = "https://ocg-rule.readthedocs.io/zh_CN/master/"; String URL_MASTERRULE_CN = "https://ocg-rule.readthedocs.io/zh_CN/master/";
String WIKI_SEARCH_URL = "https://www.ourocg.cn/S.aspx?key="; String WIKI_SEARCH_URL = "https://www.ourocg.cn/S.aspx?key=";
......
...@@ -94,9 +94,8 @@ import ocgcore.CardManager; ...@@ -94,9 +94,8 @@ import ocgcore.CardManager;
import ocgcore.data.Card; import ocgcore.data.Card;
import static cn.garymb.ygomobile.Constants.ASSET_SERVER_LIST; import static cn.garymb.ygomobile.Constants.ASSET_SERVER_LIST;
import static cn.garymb.ygomobile.Constants.URL_PGYER_CN; import static cn.garymb.ygomobile.Constants.URL_DONATE;
import static cn.garymb.ygomobile.Constants.URL_PGYER_EN; import static cn.garymb.ygomobile.Constants.URL_DONATE_CN;
import static cn.garymb.ygomobile.Constants.URL_PGYER_KO;
public abstract class HomeActivity extends BaseActivity implements NavigationView.OnNavigationItemSelectedListener, OnDuelAssistantListener { public abstract class HomeActivity extends BaseActivity implements NavigationView.OnNavigationItemSelectedListener, OnDuelAssistantListener {
...@@ -295,12 +294,10 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie ...@@ -295,12 +294,10 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie
switch (id) { switch (id) {
case R.id.nav_webpage: { case R.id.nav_webpage: {
String url; String url;
if (BuildConfig.APPLICATION_ID == "cn.garymb.ygomobile.EN") { if (BuildConfig.APPLICATION_ID == "cn.garymb.ygomobile.EN" || BuildConfig.APPLICATION_ID == "cn.garymb.ygomobile.KO") {
url = URL_PGYER_EN; url = URL_DONATE;
} else if (BuildConfig.APPLICATION_ID == "cn.garymb.ygomobile.KO") {
url = URL_PGYER_KO;
} else { } else {
url = URL_PGYER_CN; url = URL_DONATE_CN;
} }
Intent intent = new Intent(Intent.ACTION_VIEW); Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(url)); intent.setData(Uri.parse(url));
......
This diff is collapsed.
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