Commit 18a5d727 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent 3f24f8fd
...@@ -47,7 +47,10 @@ public class NotificationService extends Service { ...@@ -47,7 +47,10 @@ public class NotificationService extends Service {
super.onCreate(); super.onCreate();
// 开启定时器 // 开启定时器
try {
AlarmManager.getInstance().startTime(); AlarmManager.getInstance().startTime();
} catch (Exception e) {
}
try { try {
notification = getFixedNotification(this); notification = getFixedNotification(this);
......
...@@ -331,6 +331,7 @@ class HomeFragment : BaseFragment(), WifiStateManager.WifiStateCallback, ...@@ -331,6 +331,7 @@ class HomeFragment : BaseFragment(), WifiStateManager.WifiStateCallback,
bundle.putInt(Constant.WRAPPER_TYPE, Constant.WRAPPER_TYPE_WZ) bundle.putInt(Constant.WRAPPER_TYPE, Constant.WRAPPER_TYPE_WZ)
readyGo(WrapperActivity::class.java, bundle) readyGo(WrapperActivity::class.java, bundle)
} }
Constant.HOT_ACTIVITY_CPD -> { Constant.HOT_ACTIVITY_CPD -> {
if (!UserManager.getInstance().userIsLogin()) { if (!UserManager.getInstance().userIsLogin()) {
readyGo(WxLoginActivity::class.java) readyGo(WxLoginActivity::class.java)
......
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