Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fallenstardust
YGOMobile-Cn-Ko-En
Commits
aa2a8475
Commit
aa2a8475
authored
Jan 01, 2020
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
安卓10不申请通知,悬浮窗权限
3.6.1LOG-O
parent
c5bc6988
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
31 deletions
+18
-31
mobile/assets/changelog.html
mobile/assets/changelog.html
+7
-17
mobile/build.gradle
mobile/build.gradle
+1
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/home/MainActivity.java
...c/main/java/cn/garymb/ygomobile/ui/home/MainActivity.java
+9
-12
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/mcchat/util/Util.java
.../java/cn/garymb/ygomobile/ui/mycard/mcchat/util/Util.java
+1
-1
mobile/src/main/res/drawable-xhdpi/ic_launcher3.png
mobile/src/main/res/drawable-xhdpi/ic_launcher3.png
+0
-0
No files found.
mobile/assets/changelog.html
View file @
aa2a8475
...
@@ -20,24 +20,14 @@
...
@@ -20,24 +20,14 @@
<pre>
<pre>
更新:
更新:
1.更新ygo内核;
1.更新ygo内核;
2.新卡SD37;
2.新卡LGB1+20PP+JF20+VJ;
3.2020.1 OCG禁卡表(正式联机次月生效)
3.添加无效化音效;
4.播放背景音乐(支持格式mp3,wav,ogg);
5.可文件夹内修改背景音乐以及音效(ygocore/sound);
6.可配置特定怪兽出场音乐或者音效(如sound/chants/怪兽卡数字密码.mp3);
7.丰富音效场景;
8.完善应用闪退日志收集上报机制;
变更:
变更:
1.变更多种音效;
1.功能菜单与萌卡按钮移到右下角;
2.ygopro辅助功能里支持即时音效,背景音乐开关;
2.安卓10可使用决斗助手
3.APP设置里移除音效开关;
·不需要通知,悬浮窗权限;
4.宣言等级1-12星改为多选按钮(以前是滚动列表);
·需复制后打开本app才能检测;
5.变更自动更新接收线路(下次自动更新生效)
3.同一召唤曲结束前不会重复播放;
修复:
1.修复部分刘海屏手机点击偏移的问题;
2.修复异画卡密码显示不正确的问题;
3.修复部分手机覆盖安装后无法打开的问题;
4.修复安卓模拟器的兼容问题;
</pre>
</pre>
<h3
style=
"color:#ff0000"
>
注意
</h3>
<h3
style=
"color:#ff0000"
>
注意
</h3>
<pre>
<pre>
...
...
mobile/build.gradle
View file @
aa2a8475
...
@@ -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
36010
1230
versionCode
36010
0101
versionName
"3.6.1"
versionName
"3.6.1"
flavorDimensions
"versionCode"
flavorDimensions
"versionCode"
vectorDrawables
.
useSupportLibrary
=
true
vectorDrawables
.
useSupportLibrary
=
true
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/home/MainActivity.java
View file @
aa2a8475
...
@@ -3,7 +3,6 @@ package cn.garymb.ygomobile.ui.home;
...
@@ -3,7 +3,6 @@ package cn.garymb.ygomobile.ui.home;
import
android.Manifest
;
import
android.Manifest
;
import
android.annotation.SuppressLint
;
import
android.annotation.SuppressLint
;
import
android.content.ComponentName
;
import
android.content.ComponentName
;
import
android.content.Context
;
import
android.content.DialogInterface
;
import
android.content.DialogInterface
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.graphics.Color
;
import
android.graphics.Color
;
...
@@ -13,14 +12,9 @@ import android.os.Bundle;
...
@@ -13,14 +12,9 @@ import android.os.Bundle;
import
android.util.Log
;
import
android.util.Log
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.NonNull
;
import
com.bumptech.glide.Glide
;
import
com.yuyh.library.imgsel.ISNav
;
import
com.yuyh.library.imgsel.common.ImageLoader
;
import
java.io.IOException
;
import
java.io.IOException
;
import
cn.garymb.ygomobile.AppsSettings
;
import
cn.garymb.ygomobile.AppsSettings
;
...
@@ -44,10 +38,6 @@ import static cn.garymb.ygomobile.ui.home.ResCheckTask.ResCheckListener;
...
@@ -44,10 +38,6 @@ import static cn.garymb.ygomobile.ui.home.ResCheckTask.ResCheckListener;
import
static
cn
.
garymb
.
ygomobile
.
ui
.
home
.
ResCheckTask
.
getDatapath
;
import
static
cn
.
garymb
.
ygomobile
.
ui
.
home
.
ResCheckTask
.
getDatapath
;
public
class
MainActivity
extends
HomeActivity
{
public
class
MainActivity
extends
HomeActivity
{
private
GameUriManager
mGameUriManager
;
private
ImageUpdater
mImageUpdater
;
private
boolean
enableStart
;
ResCheckTask
mResCheckTask
;
private
final
String
[]
PERMISSIONS
=
{
private
final
String
[]
PERMISSIONS
=
{
// Manifest.permission.RECORD_AUDIO,
// Manifest.permission.RECORD_AUDIO,
Manifest
.
permission
.
READ_PHONE_STATE
,
Manifest
.
permission
.
READ_PHONE_STATE
,
...
@@ -55,6 +45,10 @@ public class MainActivity extends HomeActivity {
...
@@ -55,6 +45,10 @@ public class MainActivity extends HomeActivity {
Manifest
.
permission
.
WRITE_EXTERNAL_STORAGE
,
Manifest
.
permission
.
WRITE_EXTERNAL_STORAGE
,
Manifest
.
permission
.
READ_EXTERNAL_STORAGE
,
Manifest
.
permission
.
READ_EXTERNAL_STORAGE
,
};
};
ResCheckTask
mResCheckTask
;
private
GameUriManager
mGameUriManager
;
private
ImageUpdater
mImageUpdater
;
private
boolean
enableStart
;
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
...
@@ -138,14 +132,14 @@ public class MainActivity extends HomeActivity {
...
@@ -138,14 +132,14 @@ public class MainActivity extends HomeActivity {
dialog
.
setOnDismissListener
(
new
DialogInterface
.
OnDismissListener
()
{
dialog
.
setOnDismissListener
(
new
DialogInterface
.
OnDismissListener
()
{
@Override
@Override
public
void
onDismiss
(
DialogInterface
dialogInterface
)
{
public
void
onDismiss
(
DialogInterface
dialogInterface
)
{
if
(
AppsSettings
.
get
().
isServiceDuelAssistant
())
if
(
AppsSettings
.
get
().
isServiceDuelAssistant
()
&&
Build
.
VERSION
.
SDK_INT
!=
Build
.
VERSION_CODES
.
Q
)
PermissionUtil
.
isServicePermission
(
MainActivity
.
this
,
true
);
PermissionUtil
.
isServicePermission
(
MainActivity
.
this
,
true
);
}
}
});
});
dialog
.
show
();
dialog
.
show
();
}
}
}
else
{
}
else
{
if
(
AppsSettings
.
get
().
isServiceDuelAssistant
())
if
(
AppsSettings
.
get
().
isServiceDuelAssistant
()
&&
Build
.
VERSION
.
SDK_INT
!=
Build
.
VERSION_CODES
.
Q
)
PermissionUtil
.
isServicePermission
(
MainActivity
.
this
,
true
);
PermissionUtil
.
isServicePermission
(
MainActivity
.
this
,
true
);
getGameUriManager
().
doIntent
(
getIntent
());
getGameUriManager
().
doIntent
(
getIntent
());
}
}
...
@@ -242,6 +236,9 @@ public class MainActivity extends HomeActivity {
...
@@ -242,6 +236,9 @@ public class MainActivity extends HomeActivity {
IOUtils
.
copyFilesFromAssets
(
this
,
getDatapath
(
Constants
.
CORE_SKIN_PATH
),
IOUtils
.
copyFilesFromAssets
(
this
,
getDatapath
(
Constants
.
CORE_SKIN_PATH
),
AppsSettings
.
get
().
getCoreSkinPath
(),
false
);
AppsSettings
.
get
().
getCoreSkinPath
(),
false
);
IOUtils
.
copyFilesFromAssets
(
this
,
getDatapath
(
Constants
.
CORE_SOUND_PATH
),
AppsSettings
.
get
().
getSoundPath
(),
false
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
Log
.
e
(
"MainActivity"
,
"错误"
+
e
);
Log
.
e
(
"MainActivity"
,
"错误"
+
e
);
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/mcchat/util/Util.java
View file @
aa2a8475
...
@@ -34,7 +34,7 @@ public class Util {
...
@@ -34,7 +34,7 @@ public class Util {
}
}
public
static
void
startDuelService
(
Context
context
)
{
public
static
void
startDuelService
(
Context
context
)
{
if
(
AppsSettings
.
get
().
isServiceDuelAssistant
())
{
if
(
AppsSettings
.
get
().
isServiceDuelAssistant
()
&&
Build
.
VERSION
.
SDK_INT
!=
Build
.
VERSION_CODES
.
Q
)
{
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
O
)
{
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
O
)
{
DialogPlus
dialogPlus
=
PermissionUtil
.
isNotificationPermission
(
context
);
DialogPlus
dialogPlus
=
PermissionUtil
.
isNotificationPermission
(
context
);
if
(
dialogPlus
==
null
)
if
(
dialogPlus
==
null
)
...
...
mobile/src/main/res/drawable-xhdpi/ic_launcher3.png
View replaced file @
c5bc6988
View file @
aa2a8475
137 KB
|
W:
|
H:
140 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment