导航菜单

页面标题

页面副标题

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

正在查看: 管控平台 v5.2.3.0. 应用的 ViolationNoNetworkService.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 androidx.annotation.Nullable;
import com.iflytek.mdmcommon.NetUtil;
import com.iflytek.mdmservice.MDMApp;
import com.iflytek.mdmservice.db.ViolstionNoNetManager;
import com.iflytek.mdmservice.db.entity.ViolstionNoNetwork;
import com.iflytek.mdmservice.k.d0;
import com.iflytek.mdmservice.service.ViolationNoNetworkService;

public class ViolationNoNetworkService extends IntentService {

    private Handler f517a;

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

        public void a() {
            ViolstionNoNetManager violstionNoNetManager = ViolstionNoNetManager.getInstance();
            ViolstionNoNetwork violstionNoNet = violstionNoNetManager.getViolstionNoNet();
            if (violstionNoNet == null || !NetUtil.isNetworkAvailable(MDMApp.j())) {
                return;
            }
            violstionNoNetManager.removeViolstionNoNet(violstionNoNet.getViolstionId().longValue());
            long longValue = violstionNoNet.getUserId().longValue();
            Long schoolId = violstionNoNet.getSchoolId();
            if (schoolId == null || schoolId.longValue() == 0) {
                schoolId = -1L;
            }
            String type = violstionNoNet.getType();
            int intValue = violstionNoNet.getLimit().intValue();
            long longValue2 = violstionNoNet.getViolstionId().longValue();
            d0.b0().D1(longValue, schoolId.longValue(), type, intValue, Long.valueOf(longValue2), violstionNoNet.getViolstionTime().longValue(), violstionNoNet.getVioDetail());
            ViolationNoNetworkService.this.f517a.postDelayed(new Runnable() {
                @Override
                public final void run() {
                    ViolationNoNetworkService.a.this.b();
                }
            }, 3000L);
        }

        public void b() {
            ViolationNoNetworkService.this.f517a.sendEmptyMessage(2);
        }

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

    public ViolationNoNetworkService() {
        super("ViolationNoNetworkService");
        this.f517a = new a(Looper.getMainLooper());
    }

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