ModV2.0.4 v1.86526672844804版本的 MD5 值为:ab8437a2d03fc69805a8b4199bd7fecb
以下内容为反编译后的 dr.java 源代码,内容仅作参考
package com.joaomgcd.taskerm.util;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public final class dr {
public static final Intent a(Context context, String str, String str2, File[] fileArr) {
c.f.b.k.b(context, "context");
c.f.b.k.b(str, "title");
c.f.b.k.b(str2, "text");
return a(context, "support@joaoapps.com", str, str2, false, fileArr, 16, null);
}
public static Intent a(Context context, String str, String str2, String str3, boolean z, File[] fileArr, int i, Object obj) {
boolean z2 = (i & 16) != 0 ? true : z;
if ((i & 32) != 0) {
fileArr = null;
}
return a(context, str, str2, str3, z2, fileArr);
}
public static final Intent a(Context context, String str, String str2, String str3, boolean z, File[] fileArr) {
Intent intent;
c.f.b.k.b(context, "context");
List h = fileArr != null ? c.a.d.h(fileArr) : null;
if (h == null || h.isEmpty()) {
intent = new Intent("android.intent.action.SEND");
intent.setType("text/plain");
} else {
Intent intent2 = new Intent("android.intent.action.SEND_MULTIPLE");
List<File> list = h;
ArrayList arrayList = new ArrayList(c.a.j.a((Iterable) list, 10));
for (File file : list) {
arrayList.add(dq.a(file, context, (String[]) null, intent2, false, 10, (Object) null));
}
Object[] array = arrayList.toArray(new Uri[0]);
if (array != null) {
Uri[] uriArr = (Uri[]) array;
intent2.putParcelableArrayListExtra("android.intent.extra.STREAM", c.a.j.d((Uri[]) Arrays.copyOf(uriArr, uriArr.length)));
intent = intent2;
} else {
throw new c.q("null cannot be cast to non-null type kotlin.Array<T>");
}
}
intent.setType("message/rfc822");
intent.setFlags(268435456);
intent.putExtra("android.intent.extra.EMAIL", new String[]{str});
intent.putExtra("android.intent.extra.SUBJECT", str2);
intent.putExtra("android.intent.extra.TEXT", str3);
if (z) {
Intent intent3 = new Intent("android.intent.action.SENDTO");
intent3.setType("text/plain");
intent3.setData(Uri.fromParts("mailto", str != null ? str : "", null));
intent = an.a(intent, context, "Choose app to send email with", true, intent3, null, 16, null);
}
intent.addFlags(268435456);
return intent;
}
public static final Intent a(Context context, cp cpVar) {
c.f.b.k.b(context, "context");
c.f.b.k.b(cpVar, "args");
Intent intent = new Intent("android.intent.action.SEND");
intent.setType("text/plain");
intent.putExtra("android.intent.extra.SUBJECT", cpVar.b());
intent.putExtra("android.intent.extra.TEXT", cpVar.a());
intent.setFlags(268435456);
Intent createChooser = Intent.createChooser(intent, an.a(cpVar.c(), context, new Object[0]));
createChooser.setFlags(276824064);
c.f.b.k.a((Object) createChooser, "Intent.createChooser(int…XCLUDE_FROM_RECENTS\n }");
return createChooser;
}
}