Commit 1dfdc0e6 authored by fallenstardust's avatar fallenstardust

填坑 韩文strings

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