ComeetChat v1.866866806590版本的 MD5 值为:4a7461802cd62adce19de75377dd7ca7

以下内容为反编译后的 NotificationActionUploadTitleAndTextToGoogleDrive.java 源代码,内容仅作参考


package com.joaomgcd.taskerm.util;

import android.os.Parcel;
import android.os.Parcelable;
import com.joaomgcd.taskerm.dialog.ac;
import com.joaomgcd.taskerm.genericaction.ActivityGenericAction;
import com.joaomgcd.taskerm.genericaction.GenericActionActivity;
import com.joaomgcd.taskerm.google.drive.io.DriveMetadataV3Upload;
import com.joaomgcd.taskerm.google.drive.io.ErrorPayloadGoogleDrive;
import net.danlew.android.joda.R;

public final class NotificationActionUploadTitleAndTextToGoogleDrive extends GenericActionActivity {
    public static final Parcelable.Creator CREATOR = new a();

    private final String f9217a;

    private final String f9218b;

    private final String f9219c;

    public static class a implements Parcelable.Creator {
        @Override
        public final Object createFromParcel(Parcel parcel) {
            c.f.b.k.b(parcel, "in");
            return new NotificationActionUploadTitleAndTextToGoogleDrive(parcel.readString(), parcel.readString(), parcel.readString());
        }

        @Override
        public final Object[] newArray(int i) {
            return new NotificationActionUploadTitleAndTextToGoogleDrive[i];
        }
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        c.f.b.k.b(parcel, "parcel");
        parcel.writeString(this.f9217a);
        parcel.writeString(this.f9218b);
        parcel.writeString(this.f9219c);
    }

    public NotificationActionUploadTitleAndTextToGoogleDrive(String str, String str2, String str3) {
        super("NotificationActionUploadTitleAndTextToGoogleDrive");
        c.f.b.k.b(str, "text");
        c.f.b.k.b(str2, "fileName");
        this.f9217a = str;
        this.f9218b = str2;
        this.f9219c = str3;
    }

    @Override
    public b.a.l<cr> execute$Tasker_6_1_32__marketNoTrialRelease(ActivityGenericAction activityGenericAction) {
        boolean z;
        String str;
        cw<DriveMetadataV3Upload, ErrorPayloadGoogleDrive> b2;
        c.f.b.k.b(activityGenericAction, "context");
        ActivityGenericAction activityGenericAction2 = activityGenericAction;
        String b3 = com.joaomgcd.taskerm.google.drive.a.f7190a.a(activityGenericAction2).b();
        if (b3 == null) {
            b.a.l<cr> a2 = b.a.l.a(ct.a("Couldn't sign in to Google Drive"));
            c.f.b.k.a((Object) a2, "Single.just(SimpleResult…ign in to Google Drive\"))");
            return a2;
        }
        com.joaomgcd.taskerm.google.drive.j jVar = new com.joaomgcd.taskerm.google.drive.j(activityGenericAction2, b3);
        com.joaomgcd.taskerm.dialog.ac a3 = ac.a.a(com.joaomgcd.taskerm.dialog.ac.f6387a, activityGenericAction2, R.string.dc_uploading_report_files, false, 4, null);
        try {
            String str2 = this.f9219c;
            if (str2 != null && str2.length() != 0) {
                z = false;
                if (z) {
                    str = this.f9219c + "\n\n" + this.f9217a;
                } else {
                    str = this.f9217a;
                }
                b2 = jVar.a(new com.joaomgcd.taskerm.google.drive.h(str, this.f9218b, "Tasker/data/crashreports"), "support@joaoapps.com").b();
                com.joaomgcd.taskerm.dialog.ac.a(a3, null, 1, null);
                if (b2.b()) {
                    b.a.l<cr> a4 = b.a.l.a(ct.a("Couldn't upload and share crash report to Google Drive: " + b2.a()));
                    c.f.b.k.a((Object) a4, "Single.just(SimpleResult…rrorMessageFromResult}\"))");
                    return a4;
                }
                DriveMetadataV3Upload d2 = b2.d();
                if (d2 == null) {
                    b.a.l<cr> a5 = b.a.l.a(ct.a("Couldn't get uploaded file details for crash report to Google Drive"));
                    c.f.b.k.a((Object) a5, "Single.just(SimpleResult…report to Google Drive\"))");
                    return a5;
                }
                al.n(activityGenericAction, d2.getWebUrl());
                com.joaomgcd.taskerm.dialog.y.d(activityGenericAction, R.string.uploaded, R.string.google_drive_url_copied_to_clipboard_send_to_developer).b();
                b.a.l<cr> a6 = b.a.l.a(new cu());
                c.f.b.k.a((Object) a6, "Single.just(SimpleResultSuccess())");
                return a6;
            }
            z = true;
            if (z) {
            }
            b2 = jVar.a(new com.joaomgcd.taskerm.google.drive.h(str, this.f9218b, "Tasker/data/crashreports"), "support@joaoapps.com").b();
            com.joaomgcd.taskerm.dialog.ac.a(a3, null, 1, null);
            if (b2.b()) {
            }
        } finally {
            com.joaomgcd.taskerm.dialog.ac.a(a3, null, 1, null);
        }
    }
}