Commit d27e2c33 authored by fallenstardust's avatar fallenstardust

禁用历史进程单独启动game

加入房间不再重复创建游戏
parent b3edecf5
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
android:name="cn.garymb.ygomobile.YGOMobileActivity" android:name="cn.garymb.ygomobile.YGOMobileActivity"
android:clearTaskOnLaunch="true" android:clearTaskOnLaunch="true"
android:configChanges="orientation|keyboardHidden|screenSize" android:configChanges="orientation|keyboardHidden|screenSize"
android:excludeFromRecents="true"
android:exported="true" android:exported="true"
android:label="YGOMobile" android:label="YGOMobile"
android:process=":game" android:process=":game"
......
...@@ -15,28 +15,19 @@ ...@@ -15,28 +15,19 @@
特别感谢: 菜菜,尸体,废话多,大毛,龙道香姐,晓L,幻兽L 的支持与努力. 特别感谢: 菜菜,尸体,废话多,大毛,龙道香姐,晓L,幻兽L 的支持与努力.
</pre> </pre>
<ul> <ul>
<li style="color:#ffff00">3.6.5</li> <li style="color:#ffff00">3.7.0</li>
</ul> </ul>
<pre> <pre>
更新: 更新:
1.更新ygo内核; 1.更新ygo内核;
2.新卡VB22+SD38+DUOV+VJ; 变更:
优化: 1.ygopro进程将不再能从
1.搜索通常怪兽不会再搜索到衍生物; 历史进程中被单独唤起。
(可以在专门搜索衍生物) 游戏途中切回请点击
“点此返回决斗”
</pre> </pre>
<h3 style="color:#ff0000">注意</h3> <h3 style="color:#ff0000">注意</h3>
<pre> <pre>
下个版本起,
不仅是变更为大师规则2020,根据谷歌隐私策略要求,将迁移
ygocore文件夹到Android/data/cn.garymb.ygomobile/file下
解决误删卡图脚本和权限问题引起的问题
解决ygopro2占用文件夹引起的黑屏,闪退,文件损坏问题
但这样会导致卸载本APP会同时丢失卡组文件
可以登陆萌卡平台→编辑卡组,自动在线云备份卡组到你的萌卡账户
如果在萌卡注册和登陆遇到问题的,可以加测试群一起配合测试
希望大家及时备份,以免损失。
①:文字出现黑块可以点击左侧卡图去除; ①:文字出现黑块可以点击左侧卡图去除;
②:背景音乐播放流畅性视手机性能强度而定 ②:背景音乐播放流畅性视手机性能强度而定
如果使用过程中感觉卡顿,掉帧,或者不习惯,是可以辅助功能里关闭的; 如果使用过程中感觉卡顿,掉帧,或者不习惯,是可以辅助功能里关闭的;
......
...@@ -8,8 +8,8 @@ android { ...@@ -8,8 +8,8 @@ android {
applicationId "cn.garymb.ygomobile" applicationId "cn.garymb.ygomobile"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 28 targetSdkVersion 28
versionCode 360500328 versionCode 370000408
versionName "3.6.5" versionName "3.7.0"
flavorDimensions "versionCode" flavorDimensions "versionCode"
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
ndk { ndk {
......
...@@ -433,21 +433,28 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie ...@@ -433,21 +433,28 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie
builder.setLeftButtonText(R.string.join_game); builder.setLeftButtonText(R.string.join_game);
builder.setLeftButtonListener((dlg, i) -> { builder.setLeftButtonListener((dlg, i) -> {
dlg.dismiss(); dlg.dismiss();
//保存名字 if (ComponentUtils.isActivityRunning(this, new ComponentName(this, YGOMobileActivity.class))) {
String name = editText.getText().toString(); Toast toast = Toast.makeText(getApplicationContext(), R.string.tip_return_to_duel, Toast.LENGTH_SHORT);
if (!TextUtils.isEmpty(name)) { toast.setGravity(Gravity.CENTER, 0, 0);
List<String> items = simpleListAdapter.getItems(); toast.show();
int index = items.indexOf(name); openGame();
if (index >= 0) { } else {
items.remove(index); //保存名字
items.add(0, name); String name = editText.getText().toString();
} else { if (!TextUtils.isEmpty(name)) {
items.add(0, name); List<String> items = simpleListAdapter.getItems();
int index = items.indexOf(name);
if (index >= 0) {
items.remove(index);
items.add(0, name);
} else {
items.add(0, name);
}
AppsSettings.get().setLastRoomList(items);
simpleListAdapter.notifyDataSetChanged();
} }
AppsSettings.get().setLastRoomList(items); joinGame(serverInfo, name);
simpleListAdapter.notifyDataSetChanged();
} }
joinGame(serverInfo, name);
}); });
builder.setOnCloseLinster((dlg) -> { builder.setOnCloseLinster((dlg) -> {
dlg.dismiss(); dlg.dismiss();
......
...@@ -276,4 +276,5 @@ ...@@ -276,4 +276,5 @@
<string name="already_top">첫번째</string> <string name="already_top">첫번째</string>
<string name="already_end">마지막</string> <string name="already_end">마지막</string>
<string name="tip_expansions_image">카드의 고화질 이미지가 없습니다.</string> <string name="tip_expansions_image">카드의 고화질 이미지가 없습니다.</string>
<string name="tip_return_to_duel">이미 돌아 가기 현재 게임</string>
</resources> </resources>
...@@ -275,4 +275,5 @@ ...@@ -275,4 +275,5 @@
<string name="already_end">已经是最后一张啦</string> <string name="already_end">已经是最后一张啦</string>
<string name="tip_redownload">重新下载?</string> <string name="tip_redownload">重新下载?</string>
<string name="tip_expansions_image">非自带卡片没有大图</string> <string name="tip_expansions_image">非自带卡片没有大图</string>
<string name="tip_return_to_duel">已回到当前游戏</string>
</resources> </resources>
...@@ -278,4 +278,5 @@ ...@@ -278,4 +278,5 @@
<string name="already_end">Already the last card</string> <string name="already_end">Already the last card</string>
<string name="tip_redownload">Redownload\?</string> <string name="tip_redownload">Redownload\?</string>
<string name="tip_expansions_image">no Large image for pre-released data</string> <string name="tip_expansions_image">no Large image for pre-released data</string>
<string name="tip_return_to_duel">Current game has been Returned</string>
</resources> </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