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
77effa7a
Commit
77effa7a
authored
Nov 10, 2018
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update trpay SDK
parent
637386c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
mobile/libs/paysdk-release-1.2.2.jar
mobile/libs/paysdk-release-1.2.2.jar
+0
-0
mobile/src/main/java/cn/garymb/ygomobile/ui/plus/ServiceDuelAssistant.java
...ava/cn/garymb/ygomobile/ui/plus/ServiceDuelAssistant.java
+11
-11
No files found.
mobile/libs/paysdk-release-1.2.2.jar
deleted
100644 → 0
View file @
637386c5
File deleted
mobile/src/main/java/cn/garymb/ygomobile/ui/plus/ServiceDuelAssistant.java
View file @
77effa7a
...
@@ -120,13 +120,13 @@ public class ServiceDuelAssistant extends Service {
...
@@ -120,13 +120,13 @@ public class ServiceDuelAssistant extends Service {
@Override
@Override
public
int
onStartCommand
(
Intent
intent
,
int
flags
,
int
startId
)
{
public
int
onStartCommand
(
Intent
intent
,
int
flags
,
int
startId
)
{
String
action
=
intent
.
getAction
();
String
action
=
intent
.
getAction
();
Log
.
d
(
TAG
,
"rev action:"
+
action
);
Log
.
d
(
TAG
,
"rev action:"
+
action
);
if
(
DUEL_ASSISTANT_SERVICE_ACTION
.
equals
(
action
))
{
if
(
DUEL_ASSISTANT_SERVICE_ACTION
.
equals
(
action
))
{
String
cmd
=
intent
.
getStringExtra
(
CMD_NAME
);
String
cmd
=
intent
.
getStringExtra
(
CMD_NAME
);
Log
.
d
(
TAG
,
"rev cmd:"
+
cmd
);
Log
.
d
(
TAG
,
"rev cmd:"
+
cmd
);
if
(
null
==
cmd
)
{
if
(
null
==
cmd
)
{
Log
.
e
(
TAG
,
"cmd null"
);
Log
.
e
(
TAG
,
"cmd null"
);
}
else
{
}
else
{
switch
(
cmd
)
{
switch
(
cmd
)
{
case
CMD_STOP_SERVICE:
case
CMD_STOP_SERVICE:
...
@@ -156,18 +156,18 @@ public class ServiceDuelAssistant extends Service {
...
@@ -156,18 +156,18 @@ public class ServiceDuelAssistant extends Service {
// TODO: Implement this method
// TODO: Implement this method
super
.
onCreate
();
super
.
onCreate
();
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
O
)
{
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
O
)
{
RemoteViews
remoteViews
=
new
RemoteViews
(
getPackageName
(),
R
.
layout
.
notification_view_duel_assistant
);
RemoteViews
remoteViews
=
new
RemoteViews
(
getPackageName
(),
R
.
layout
.
notification_view_duel_assistant
);
Intent
intent
=
new
Intent
(
this
,
this
.
getClass
());
Intent
intent
=
new
Intent
(
this
,
this
.
getClass
());
intent
.
setAction
(
DUEL_ASSISTANT_SERVICE_ACTION
);
intent
.
setAction
(
DUEL_ASSISTANT_SERVICE_ACTION
);
PendingIntent
pendingIntent
;
PendingIntent
pendingIntent
;
intent
.
putExtra
(
CMD_NAME
,
CMD_START_GAME
);
intent
.
putExtra
(
CMD_NAME
,
CMD_START_GAME
);
pendingIntent
=
PendingIntent
.
getService
(
this
,
1
,
intent
,
PendingIntent
.
FLAG_UPDATE_CURRENT
);
pendingIntent
=
PendingIntent
.
getService
(
this
,
1
,
intent
,
PendingIntent
.
FLAG_UPDATE_CURRENT
);
remoteViews
.
setOnClickPendingIntent
(
R
.
id
.
notification_view_duel_assistant
,
pendingIntent
);
remoteViews
.
setOnClickPendingIntent
(
R
.
id
.
notification_view_duel_assistant
,
pendingIntent
);
intent
.
putExtra
(
CMD_NAME
,
CMD_STOP_SERVICE
);
intent
.
putExtra
(
CMD_NAME
,
CMD_STOP_SERVICE
);
pendingIntent
=
PendingIntent
.
getService
(
this
,
2
,
intent
,
PendingIntent
.
FLAG_UPDATE_CURRENT
);
pendingIntent
=
PendingIntent
.
getService
(
this
,
2
,
intent
,
PendingIntent
.
FLAG_UPDATE_CURRENT
);
remoteViews
.
setOnClickPendingIntent
(
R
.
id
.
buttonStopService
,
pendingIntent
);
remoteViews
.
setOnClickPendingIntent
(
R
.
id
.
buttonStopService
,
pendingIntent
);
Notification
.
Builder
builder
=
new
Notification
.
Builder
(
this
);
Notification
.
Builder
builder
=
new
Notification
.
Builder
(
this
);
...
...
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