Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huangzhicong
/
SmartCanteen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6c38c763
authored
Mar 17, 2020
by
pye52
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复启动守护app时发送了file实例而非更新包地址的问题
parent
cd63d6ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
app/src/main/java/com/bgycc/smartcanteen/utils/InstallManager.java
+1
-1
No files found.
app/src/main/java/com/bgycc/smartcanteen/utils/InstallManager.java
View file @
6c38c763
...
...
@@ -108,7 +108,7 @@ public class InstallManager {
LogUtils
.
d
(
TAG
,
"启动守护app进行更新操作"
);
ComponentName
componentName
=
new
ComponentName
(
DAEMON_PACKAGE_NAME
,
DAEMON_SERVICE_NAME
);
Intent
intent
=
new
Intent
();
intent
.
putExtra
(
ARG_PATH
,
updateApk
.
getAbsolute
File
());
intent
.
putExtra
(
ARG_PATH
,
updateApk
.
getAbsolute
Path
());
intent
.
putExtra
(
ARG_COMPONENT
,
BuildConfig
.
APPLICATION_ID
+
File
.
separator
+
MainActivity
.
class
.
getName
());
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
intent
.
setComponent
(
componentName
);
...
...
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