导航菜单

页面标题

页面副标题

Uptodown App Store v6.80 - DownloadUpdateNotificationReceiver.java 源代码

正在查看: Uptodown App Store v6.80 应用的 DownloadUpdateNotificationReceiver.java JAVA 源代码文件

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


package com.uptodown.receivers;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.uptodown.UptodownApp;
import com.uptodown.workers.DownloadWorker;
import g2.C0965p;
import g2.P;
import java.util.Iterator;
import kotlin.jvm.internal.m;
import u2.F;

public final class DownloadUpdateNotificationReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        int intExtra;
        String action = intent != null ? intent.getAction() : null;
        if (action != null) {
            int hashCode = action.hashCode();
            if (hashCode == -1881097171) {
                if (action.equals("RESUME")) {
                    DownloadWorker.d.o();
                    return;
                }
                return;
            }
            if (hashCode == 75902422) {
                if (action.equals("PAUSE")) {
                    DownloadWorker.d.n();
                    return;
                }
                return;
            }
            if (hashCode == 1980572282 && action.equals("CANCEL") && (intExtra = intent.getIntExtra("notificationID", -1)) == 262 && context != null) {
                UptodownApp.a aVar = UptodownApp.F;
                aVar.g();
                Iterator it = aVar.D().iterator();
                m.d(it, "iterator(...)");
                while (it.hasNext()) {
                    Object next = it.next();
                    m.d(next, "next(...)");
                    P p = (P) next;
                    UptodownApp.F.e0(p.h());
                    C0965p b = p.b(context);
                    if (b != null) {
                        b.g();
                    }
                }
                F.a.d(context, intExtra);
            }
        }
    }
}