|
|
@@ -584,6 +584,7 @@ public class MainActivity extends BaseActivity implements NetWorkObservable.NetW
|
|
|
|
|
|
private Handler handler = new Handler();
|
|
|
private Runnable runnable = new MyRunnable();
|
|
|
+ private Boolean firstRed = true;
|
|
|
private void doHiTask() {
|
|
|
int isUUStep = PreferenceUtils.getInt(MyApplication.getInstance(), MainActivity.UU_STEP);
|
|
|
if (isUUStep != 0 && StepCountCheckUtil.isSupportStepCountSensor(this)) { // 开启UU运动
|
|
|
@@ -592,7 +593,6 @@ public class MainActivity extends BaseActivity implements NetWorkObservable.NetW
|
|
|
PreferenceUtils.putInt(MainActivity.UU_STEP, 1);
|
|
|
PushManager.resumeWork(MyApplication.getInstance());
|
|
|
}
|
|
|
- // CommonUtil.SaveAutoLogtoLocal("APP启动","外勤计划监控");
|
|
|
doSendSignAutoLog(); // 获取数据库中监控日志上传至服务器操作
|
|
|
//TODO 桌面红点显示逻辑
|
|
|
if (handler == null) {
|
|
|
@@ -602,13 +602,14 @@ public class MainActivity extends BaseActivity implements NetWorkObservable.NetW
|
|
|
runnable = new MyRunnable();
|
|
|
}
|
|
|
handler.post(runnable);
|
|
|
+
|
|
|
}
|
|
|
public class MyRunnable implements Runnable {
|
|
|
|
|
|
@Override
|
|
|
public void run() {
|
|
|
handler.postDelayed(runnable, 5000);
|
|
|
- BadgeUtil.setBadgeCount(getApplicationContext(), mMsgUnReadNum, R.drawable.hongdian);
|
|
|
+ BadgeUtil.setBadgeCount(getApplicationContext(), mMsgUnReadNum, R.drawable.hongdian);//启动红点显示逻辑
|
|
|
}
|
|
|
}
|
|
|
private PopupWindow popupWindow;
|