Commit 7da619ff authored by fallenstardust's avatar fallenstardust

缩短长按响应时间

arrange URL FEEDBACK
parent 544298b7
...@@ -8,7 +8,7 @@ android { ...@@ -8,7 +8,7 @@ android {
applicationId "cn.garymb.ygomobile" applicationId "cn.garymb.ygomobile"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 28 targetSdkVersion 28
versionCode 352001025 versionCode 352001105
versionName "3.5.2" versionName "3.5.2"
flavorDimensions "versionCode" flavorDimensions "versionCode"
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
......
...@@ -170,6 +170,7 @@ public interface Constants { ...@@ -170,6 +170,7 @@ public interface Constants {
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=";
String URL_FEEDBACK = "https://ygo233.com/bugs/ygomobile";
String SERVER_FILE = "server_list.xml"; String SERVER_FILE = "server_list.xml";
String SHARE_FILE = ".share_deck.png"; String SHARE_FILE = ".share_deck.png";
...@@ -183,7 +184,7 @@ public interface Constants { ...@@ -183,7 +184,7 @@ public interface Constants {
/*** /***
* 长按删除 * 长按删除
*/ */
long LONG_PRESS_DRAG = 900; long LONG_PRESS_DRAG = 600;
/*** /***
* adb shell am start -n cn.garymb.ygomobile/cn.garymb.ygomobile.ui.home.MainActivity -a ygomobile.intent.action.DECK --es android.intent.extra.TEXT 青眼白龙.ydk * adb shell am start -n cn.garymb.ygomobile/cn.garymb.ygomobile.ui.home.MainActivity -a ygomobile.intent.action.DECK --es android.intent.extra.TEXT 青眼白龙.ydk
* <p> * <p>
......
...@@ -33,6 +33,7 @@ import libwindbot.windbot.WindBot; ...@@ -33,6 +33,7 @@ import libwindbot.windbot.WindBot;
import static cn.garymb.ygomobile.Constants.CORE_BOT_CONF_PATH; import static cn.garymb.ygomobile.Constants.CORE_BOT_CONF_PATH;
import static cn.garymb.ygomobile.Constants.DATABASE_NAME; import static cn.garymb.ygomobile.Constants.DATABASE_NAME;
import static cn.garymb.ygomobile.Constants.URL_FEEDBACK;
class LocalGameHost extends GameHost { class LocalGameHost extends GameHost {
private Context context; private Context context;
...@@ -144,7 +145,7 @@ class LocalGameHost extends GameHost { ...@@ -144,7 +145,7 @@ class LocalGameHost extends GameHost {
maxW = Math.max(w1, h1); maxW = Math.max(w1, h1);
maxH = Math.min(w1, h1); maxH = Math.min(w1, h1);
int notchHeight = config.getNotchHeight(); int notchHeight = config.getNotchHeight();
if(notchHeight > 0 && immerSiveMode){ if (notchHeight > 0 && immerSiveMode) {
maxW -= notchHeight; maxW -= notchHeight;
} }
Log.i("kk", "real=" + fullW + "x" + fullH + ",cur=" + actW + "x" + actH + ",use=" + maxW + "x" + maxH); Log.i("kk", "real=" + fullW + "x" + fullH + ",cur=" + actW + "x" + actH + ",use=" + maxW + "x" + maxH);
...@@ -238,12 +239,12 @@ class LocalGameHost extends GameHost { ...@@ -238,12 +239,12 @@ class LocalGameHost extends GameHost {
} }
((TextView) dlg.findViewById(R.id.tv_screen_size)).setText(String.format("r:%dx%d,a=%dx%d,k=%s, g=%dx%d,c=%dx%d", ((TextView) dlg.findViewById(R.id.tv_screen_size)).setText(String.format("r:%dx%d,a=%dx%d,k=%s, g=%dx%d,c=%dx%d",
size.getFullW(), size.getFullH(), size.getActW(), size.getActH(), config.isKeepScale()?"Y":"N", size.getWidth(), size.getHeight(), size.getTouchX(), size.getTouchY())); size.getFullW(), size.getFullH(), size.getActW(), size.getActH(), config.isKeepScale() ? "Y" : "N", size.getWidth(), size.getHeight(), size.getTouchX(), size.getTouchY()));
dlg.findViewById(R.id.btn_report).setOnClickListener((v) -> { dlg.findViewById(R.id.btn_report).setOnClickListener((v) -> {
Intent intent = new Intent(); Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW); intent.setAction(Intent.ACTION_VIEW);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setData(Uri.parse("https://ygo233.com/bugs")); intent.setData(Uri.parse(Constants.URL_FEEDBACK));
context.startActivity(intent); context.startActivity(intent);
dlg.dismiss(); dlg.dismiss();
}); });
......
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