update 調整定時器參數
This commit is contained in:
parent
3b4ffe8c51
commit
2cc58b920f
@ -76,10 +76,15 @@ public class MessageSayHiNotifyManager {
|
||||
.getMessageSayHiTimer(new HttpCallback<MessageSayHiBean>() {
|
||||
@Override
|
||||
public void onSuccess(MessageSayHiBean data) {
|
||||
if (data.getStatus() == 0) {
|
||||
if (data.getStatus() == -1) {
|
||||
Log.i(TAG, "onSuccess: 定时器为关,不再轮训");
|
||||
return;
|
||||
}
|
||||
if(data.getStatus()==0){
|
||||
timer = new Timer();
|
||||
timer.schedule(createTask(), data.getNextTime() * 1000L);
|
||||
return;
|
||||
}
|
||||
hiBean = data;
|
||||
showDialog(data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user