导航菜单

页面标题

页面副标题

Chaupal v3.2 - CancelDownloadBroadCastReceiver.java 源代码

正在查看: Chaupal v3.2 应用的 CancelDownloadBroadCastReceiver.java JAVA 源代码文件

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


package com.yupptv.ott.player.offlinedownload;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.SparseArray;
import com.yupptv.ott.OTTApplication;

public class CancelDownloadBroadCastReceiver extends BroadcastReceiver {
    private static String b = "";
    private boolean a = false;

    public static void a() {
        xc.a t = OTTApplication.w().t();
        try {
            SparseArray<OfflineDownloadData> sparseArray = xc.a.l;
            if (sparseArray == null || sparseArray.size() <= 0) {
                return;
            }
            int size = sparseArray.size();
            for (int i = 0; i < size; i++) {
                if (t != null) {
                    try {
                        if (b.trim().isEmpty()) {
                            t.l(sparseArray.valueAt(i));
                        } else {
                            if (sparseArray.valueAt(i).t().equalsIgnoreCase(b)) {
                                t.l(sparseArray.valueAt(i));
                                b = "";
                                return;
                            }
                            continue;
                        }
                    } catch (Exception unused) {
                        continue;
                    }
                }
            }
        } catch (Exception unused2) {
        }
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        Bundle bundleExtra = intent.getBundleExtra("NOTIFICATION_DATA");
        if (bundleExtra != null) {
            this.a = bundleExtra.containsKey("SERVICES_COMING_NOTIFICATION") ? bundleExtra.getBoolean("SERVICES_COMING_NOTIFICATION") : false;
            b = intent.hasExtra("FOREGROUND_URI") ? intent.getStringExtra("FOREGROUND_URI") : "";
            a();
        }
    }
}