Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
machine
Overview
Overview
Details
Activity
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
hooloo
android
machine
Commits
0c7fa28d
Commit
0c7fa28d
authored
Apr 10, 2023
by
wjg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add release apk
parent
2bcdefe3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
main_app/src/main/java/com/ihaoin/hooloo/device/base/Base.java
+1
-0
main_app/src/main/java/com/ihaoin/hooloo/device/home/view/LauncherActivity.java
+2
-1
No files found.
main_app/src/main/java/com/ihaoin/hooloo/device/base/Base.java
View file @
0c7fa28d
...
...
@@ -19,6 +19,7 @@ public class Base {
public
static
final
String
PUSH_ACTION_SKU_STATE_CHANGED
=
"SKU_STATE_CHANGED"
;
public
static
final
String
PUSH_ACTION_QRCODE_VISITED
=
"QRCODE_VISITED"
;
public
static
final
String
PUSH_ACTION_GOODS_CHANGED
=
"GOODS_CHANGED"
;
public
static
final
String
PUSH_ACTION_BANNER_CHANGED
=
"BANNER_CHANGED"
;
public
static
final
String
BROADCAST_ACTION_ADD_GOODS
=
"ACTION_ADD_GOODS"
;
public
static
final
String
BROADCAST_ACTION_GOODS_CHANGED
=
"ACTION_GOODS_CHANGED"
;
...
...
main_app/src/main/java/com/ihaoin/hooloo/device/home/view/LauncherActivity.java
View file @
0c7fa28d
...
...
@@ -878,6 +878,7 @@ public class LauncherActivity extends Activity {
goodsChangeReceiver
=
new
GoodsChangeReceiver
();
IntentFilter
filter
=
new
IntentFilter
();
filter
.
addAction
(
Base
.
PUSH_ACTION_GOODS_CHANGED
);
filter
.
addAction
(
Base
.
PUSH_ACTION_BANNER_CHANGED
);
this
.
registerReceiver
(
goodsChangeReceiver
,
filter
);
}
...
...
@@ -1058,7 +1059,7 @@ public class LauncherActivity extends Activity {
while
(
true
)
{
Thread
.
sleep
(
1000
);
if
(!
TIMEOUT_TOGGLE
||
(
IN_MAIN
&&
HLApplication
.
getGoodsCount
()
<=
0
))
{
// 打开确认订单弹窗
,停止判断空闲 或 在首页,但购物车没有商品
// 打开确认订单弹窗
或 在首页但购物车没有商品,停止判断空闲
TIMESTAMP
=
Utils
.
getTimestamp
();
continue
;
}
...
...
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