Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
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
Commits
7675112a
Commit
7675112a
authored
Nov 09, 2018
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
如果?在最后则不跳转
parent
3930a852
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
mobile/src/main/java/cn/garymb/ygomobile/ui/plus/ServiceDuelAssistant.java
...ava/cn/garymb/ygomobile/ui/plus/ServiceDuelAssistant.java
+6
-2
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/plus/ServiceDuelAssistant.java
View file @
7675112a
...
@@ -53,12 +53,12 @@ public class ServiceDuelAssistant extends Service {
...
@@ -53,12 +53,12 @@ public class ServiceDuelAssistant extends Service {
public
static
String
cardSearchMessage
;
public
static
String
cardSearchMessage
;
//卡查关键字
private
String
[]
cardSearchKey
=
new
String
[]{
"?"
,
"?"
};
private
LinearLayout
mFloatLayout
;
private
LinearLayout
mFloatLayout
;
private
TextView
ds_text
;
private
TextView
ds_text
;
private
Button
ds_join
,
ds_qx
;
private
Button
ds_join
,
ds_qx
;
//卡查关键字
private
String
[]
cardSearchKey
=
new
String
[]{
"?"
,
"?"
};
//是否可以移除悬浮窗上面的视图
//是否可以移除悬浮窗上面的视图
private
boolean
isdis
=
false
;
private
boolean
isdis
=
false
;
...
@@ -214,6 +214,10 @@ public class ServiceDuelAssistant extends Service {
...
@@ -214,6 +214,10 @@ public class ServiceDuelAssistant extends Service {
if
(
cardSearchStart
!=
-
1
)
{
if
(
cardSearchStart
!=
-
1
)
{
//卡查内容
//卡查内容
cardSearchMessage
=
clipMessage
.
substring
(
cardSearchStart
+
s
.
length
(),
clipMessage
.
length
());
cardSearchMessage
=
clipMessage
.
substring
(
cardSearchStart
+
s
.
length
(),
clipMessage
.
length
());
//如果复制的文本里带?号后面没有内容则不跳转
if
(
TextUtils
.
isEmpty
(
cardSearchMessage
))
{
return
;
}
Intent
intent
=
new
Intent
(
ServiceDuelAssistant
.
this
,
CardSearchAcitivity
.
class
);
Intent
intent
=
new
Intent
(
ServiceDuelAssistant
.
this
,
CardSearchAcitivity
.
class
);
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
intent
.
putExtra
(
CardSearchAcitivity
.
SEARCH_MESSAGE
,
cardSearchMessage
);
intent
.
putExtra
(
CardSearchAcitivity
.
SEARCH_MESSAGE
,
cardSearchMessage
);
...
...
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