Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BYLAppRobot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuyang
BYLAppRobot
Commits
0a22420e
Commit
0a22420e
authored
Oct 24, 2018
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加程序前台判断逻辑,修复启动问题
parent
0dbc9c45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
MainActivity.kt
app/src/main/java/com/duolebo/blyrobot/MainActivity.kt
+4
-1
No files found.
app/src/main/java/com/duolebo/blyrobot/MainActivity.kt
View file @
0a22420e
...
...
@@ -71,6 +71,7 @@ class MainActivity : AppCompatActivity(), IAppBaseCallback {
requestAppList
()
refreshBtn
.
isEnabled
=
true
refreshBtn
.
setOnClickListener
{
this
.
appInfoAdapter
.
clear
()
requestAppList
()
...
...
@@ -86,6 +87,7 @@ class MainActivity : AppCompatActivity(), IAppBaseCallback {
startBtn
.
postDelayed
({
startBtn
.
isEnabled
=
true
startBtn
.
text
=
"启动"
refreshBtn
.
isEnabled
=
true
},
3000
)
}
else
{
...
...
@@ -94,7 +96,8 @@ class MainActivity : AppCompatActivity(), IAppBaseCallback {
startBtn
.
postDelayed
({
startBtn
.
isEnabled
=
true
startBtn
.
text
=
"停止"
},
3000
)
refreshBtn
.
isEnabled
=
false
},
2000
)
}
}
...
...
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