Commit 0c7fa28d by wjg

add release apk

parent 2bcdefe3
...@@ -19,6 +19,7 @@ public class Base { ...@@ -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_SKU_STATE_CHANGED = "SKU_STATE_CHANGED";
public static final String PUSH_ACTION_QRCODE_VISITED = "QRCODE_VISITED"; 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_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_ADD_GOODS = "ACTION_ADD_GOODS";
public static final String BROADCAST_ACTION_GOODS_CHANGED = "ACTION_GOODS_CHANGED"; public static final String BROADCAST_ACTION_GOODS_CHANGED = "ACTION_GOODS_CHANGED";
......
...@@ -878,6 +878,7 @@ public class LauncherActivity extends Activity { ...@@ -878,6 +878,7 @@ public class LauncherActivity extends Activity {
goodsChangeReceiver = new GoodsChangeReceiver(); goodsChangeReceiver = new GoodsChangeReceiver();
IntentFilter filter = new IntentFilter(); IntentFilter filter = new IntentFilter();
filter.addAction(Base.PUSH_ACTION_GOODS_CHANGED); filter.addAction(Base.PUSH_ACTION_GOODS_CHANGED);
filter.addAction(Base.PUSH_ACTION_BANNER_CHANGED);
this.registerReceiver(goodsChangeReceiver, filter); this.registerReceiver(goodsChangeReceiver, filter);
} }
...@@ -1058,7 +1059,7 @@ public class LauncherActivity extends Activity { ...@@ -1058,7 +1059,7 @@ public class LauncherActivity extends Activity {
while (true) { while (true) {
Thread.sleep(1000); Thread.sleep(1000);
if (!TIMEOUT_TOGGLE || (IN_MAIN && HLApplication.getGoodsCount() <= 0)) { if (!TIMEOUT_TOGGLE || (IN_MAIN && HLApplication.getGoodsCount() <= 0)) {
// 打开确认订单弹窗,停止判断空闲 或 在首页,但购物车没有商品 // 打开确认订单弹窗 或 在首页但购物车没有商品,停止判断空闲
TIMESTAMP = Utils.getTimestamp(); TIMESTAMP = Utils.getTimestamp();
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment