导航菜单

页面标题

页面副标题

管控平台 v5.2.3.0. - SendLostMDMEventService.java 源代码

正在查看: 管控平台 v5.2.3.0. 应用的 SendLostMDMEventService.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.iflytek.mdmservice.service;

import android.app.IntentService;
import android.content.Intent;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import com.iflytek.mdmcommon.NetUtil;
import com.iflytek.mdmservice.MDMApp;
import com.iflytek.mdmservice.db.SendLostMDMManager;
import com.iflytek.mdmservice.db.entity.SendLostMDMEvent;
import com.iflytek.mdmservice.k.d0;
import com.iflytek.mdmservice.service.SendLostMDMEventService;

public class SendLostMDMEventService extends IntentService {

    private Handler f509a;

    class a extends Handler {
        a(Looper looper) {
            super(looper);
        }

        public void a() {
            SendLostMDMManager sendLostMDMManager = SendLostMDMManager.getInstance();
            SendLostMDMEvent sendLostMDM = sendLostMDMManager.getSendLostMDM();
            if (sendLostMDM == null || !NetUtil.isNetworkAvailable(MDMApp.j())) {
                return;
            }
            sendLostMDMManager.removeSendLostMDMEvent(sendLostMDM.getEventTime());
            if (TextUtils.isEmpty(sendLostMDM.getEventBody())) {
                return;
            }
            d0.b0().n1(sendLostMDM);
            SendLostMDMEventService.this.f509a.postDelayed(new Runnable() {
                @Override
                public final void run() {
                    SendLostMDMEventService.a.this.b();
                }
            }, 3000L);
        }

        public void b() {
            SendLostMDMEventService.this.f509a.sendEmptyMessage(2);
        }

        @Override
        public void handleMessage(Message message) {
            MDMApp.j().o().execute(new Runnable() {
                @Override
                public final void run() {
                    SendLostMDMEventService.a.this.a();
                }
            });
        }
    }

    public SendLostMDMEventService() {
        super("SendLostMDMEventService");
        this.f509a = new a(Looper.getMainLooper());
    }

    @Override
    protected void onHandleIntent(@Nullable Intent intent) {
        this.f509a.sendEmptyMessage(2);
    }
}