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
df26e5b2
Commit
df26e5b2
authored
Oct 27, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix DuelAssiatant tip
parent
bab397c8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
mobile/src/main/java/cn/garymb/ygomobile/ui/home/MainActivity.java
...c/main/java/cn/garymb/ygomobile/ui/home/MainActivity.java
+4
-2
mobile/src/main/java/cn/garymb/ygomobile/ui/preference/fragments/SettingFragment.java
...mb/ygomobile/ui/preference/fragments/SettingFragment.java
+2
-0
mobile/src/main/res/values-zh/strings.xml
mobile/src/main/res/values-zh/strings.xml
+2
-2
mobile/src/main/res/values/strings.xml
mobile/src/main/res/values/strings.xml
+2
-2
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/home/MainActivity.java
View file @
df26e5b2
...
@@ -198,14 +198,16 @@ public class MainActivity extends HomeActivity {
...
@@ -198,14 +198,16 @@ 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
)
{
PermissionUtil
.
isServicePermission
(
MainActivity
.
this
,
true
);
if
(
AppsSettings
.
get
().
isServiceDuelAssistant
())
PermissionUtil
.
isServicePermission
(
MainActivity
.
this
,
true
);
}
}
});
});
dialog
.
show
();
dialog
.
show
();
}
}
}
else
{
}
else
{
PermissionUtil
.
isServicePermission
(
MainActivity
.
this
,
true
);
if
(
AppsSettings
.
get
().
isServiceDuelAssistant
())
PermissionUtil
.
isServicePermission
(
MainActivity
.
this
,
true
);
getGameUriManager
().
doIntent
(
getIntent
());
getGameUriManager
().
doIntent
(
getIntent
());
}
}
}
}
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/preference/fragments/SettingFragment.java
View file @
df26e5b2
...
@@ -44,6 +44,7 @@ import cn.garymb.ygomobile.ui.preference.PreferenceFragmentPlus;
...
@@ -44,6 +44,7 @@ import cn.garymb.ygomobile.ui.preference.PreferenceFragmentPlus;
import
cn.garymb.ygomobile.utils.FileUtils
;
import
cn.garymb.ygomobile.utils.FileUtils
;
import
cn.garymb.ygomobile.utils.IOUtils
;
import
cn.garymb.ygomobile.utils.IOUtils
;
import
cn.garymb.ygomobile.utils.SystemUtils
;
import
cn.garymb.ygomobile.utils.SystemUtils
;
import
cn.garymb.ygomobile.utils.PermissionUtil
;
import
ocgcore.ConfigManager
;
import
ocgcore.ConfigManager
;
import
ocgcore.DataManager
;
import
ocgcore.DataManager
;
...
@@ -193,6 +194,7 @@ public class SettingFragment extends PreferenceFragmentPlus {
...
@@ -193,6 +194,7 @@ public class SettingFragment extends PreferenceFragmentPlus {
//开关决斗助手
//开关决斗助手
if
(
preference
.
getKey
().
equals
(
PREF_START_SERVICEDUELASSISTANT
))
{
if
(
preference
.
getKey
().
equals
(
PREF_START_SERVICEDUELASSISTANT
))
{
if
(
checkBoxPreference
.
isChecked
())
{
if
(
checkBoxPreference
.
isChecked
())
{
PermissionUtil
.
isServicePermission
(
getActivity
(),
true
);
getActivity
().
startService
(
new
Intent
(
getActivity
(),
ServiceDuelAssistant
.
class
));
getActivity
().
startService
(
new
Intent
(
getActivity
(),
ServiceDuelAssistant
.
class
));
}
else
{
}
else
{
getActivity
().
stopService
(
new
Intent
(
getActivity
(),
ServiceDuelAssistant
.
class
));
getActivity
().
stopService
(
new
Intent
(
getActivity
(),
ServiceDuelAssistant
.
class
));
...
...
mobile/src/main/res/values-zh/strings.xml
View file @
df26e5b2
...
@@ -217,8 +217,8 @@
...
@@ -217,8 +217,8 @@
\n之后快捷加房时就会加入置顶的服务器
\n之后快捷加房时就会加入置顶的服务器
\n使用此功能须开启本软件悬浮窗
\n使用此功能须开启本软件悬浮窗
\n并确保本软件后台运行中
</string>
\n并确保本软件后台运行中
</string>
<string
name=
"EXPAND_STATUS_BAR"
>
需要开启通知权限\n开启
通知权限才能正常使用
功能
</string>
<string
name=
"EXPAND_STATUS_BAR"
>
需要开启通知权限\n开启
权限才能正常使用决斗助手
功能
</string>
<string
name=
"SYSTEM_ALERT_WINDOW"
>
需要开启悬浮窗权限\n开启
悬浮窗权限才能正常使用
功能
</string>
<string
name=
"SYSTEM_ALERT_WINDOW"
>
需要开启悬浮窗权限\n开启
权限才能正常使用决斗助手
功能
</string>
<string
name=
"OpenTIP"
>
快捷加房使用方法
</string>
<string
name=
"OpenTIP"
>
快捷加房使用方法
</string>
<string
name=
"Open_Alert_Window"
>
去打开悬浮窗
</string>
<string
name=
"Open_Alert_Window"
>
去打开悬浮窗
</string>
<string
name=
"Function_Menu"
>
功能菜单
</string>
<string
name=
"Function_Menu"
>
功能菜单
</string>
...
...
mobile/src/main/res/values/strings.xml
View file @
df26e5b2
...
@@ -218,8 +218,8 @@
...
@@ -218,8 +218,8 @@
\nthen join helper will acquiescently start in it
\nthen join helper will acquiescently start in it
\npls click to APP permission to find me and open the "Pop-ups"
\npls click to APP permission to find me and open the "Pop-ups"
\nand keep the soft run in the background
</string>
\nand keep the soft run in the background
</string>
<string
name=
"EXPAND_STATUS_BAR"
>
Apply expand status bar\n then
sof
t will work normally
</string>
<string
name=
"EXPAND_STATUS_BAR"
>
Apply expand status bar\n then
DuelAssiatan
t will work normally
</string>
<string
name=
"SYSTEM_ALERT_WINDOW"
>
Apply Display over other APPs\n then
sof
t will work normally
</string>
<string
name=
"SYSTEM_ALERT_WINDOW"
>
Apply Display over other APPs\n then
DuelAssiatan
t will work normally
</string>
<string
name=
"OpenTIP"
>
about Quick Join in Game
</string>
<string
name=
"OpenTIP"
>
about Quick Join in Game
</string>
<string
name=
"Open_Alert_Window"
>
To Open Pop-ups
</string>
<string
name=
"Open_Alert_Window"
>
To Open Pop-ups
</string>
<string
name=
"Function_Menu"
>
MENU
</string>
<string
name=
"Function_Menu"
>
MENU
</string>
...
...
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