正在查看: Uptodown App Store v6.80 应用的 DownloadNotificationReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Uptodown App Store v6.80 应用的 DownloadNotificationReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.uptodown.receivers;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.uptodown.workers.DownloadWorker;
import g2.C0965p;
import java.util.ArrayList;
import kotlin.jvm.internal.AbstractC1009g;
import u2.F;
import u2.p;
public final class DownloadNotificationReceiver extends BroadcastReceiver {
public static final a a = new a(null);
public static final class a {
public a(AbstractC1009g abstractC1009g) {
this();
}
private a() {
}
}
@Override
public void onReceive(Context context, Intent intent) {
int intExtra;
int intExtra2;
DownloadWorker.a aVar;
C0965p g;
String action = intent != null ? intent.getAction() : null;
if (action != null) {
switch (action.hashCode()) {
case -1919974852:
if (action.equals("CANCEL_ALL") && (intExtra = intent.getIntExtra("notificationID", -1)) == 261 && context != null) {
DownloadWorker.a aVar2 = DownloadWorker.d;
C0965p g4 = aVar2.g();
ArrayList i = new p().i(context);
if (g4 != null) {
aVar2.a(g4);
g4.S(context);
}
if (!i.isEmpty()) {
int size = i.size();
int i4 = 0;
while (i4 < size) {
Object obj = i.get(i4);
i4++;
((C0965p) obj).S(context);
}
}
F.a.d(context, intExtra);
break;
}
break;
case -1881097171:
if (action.equals("RESUME")) {
DownloadWorker.d.o();
break;
}
break;
case 75902422:
if (action.equals("PAUSE")) {
DownloadWorker.d.n();
break;
}
break;
case 1980572282:
if (action.equals("CANCEL") && (intExtra2 = intent.getIntExtra("notificationID", -1)) == 261 && (g = (aVar = DownloadWorker.d).g()) != null) {
aVar.a(g);
if (context != null) {
g.S(context);
if (new p().i(context).isEmpty()) {
F.a.d(context, intExtra2);
break;
}
}
}
break;
}
}
}
}