package com.facebook.login;

import X.1hK;
import X.M12;
import X.M5E;
import X.M5Q;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import com.facebook.login.LoginClient;
import java.util.concurrent.ScheduledThreadPoolExecutor;

public class DeviceAuthMethodHandler extends LoginMethodHandler {
    public static final Parcelable.Creator<DeviceAuthMethodHandler> CREATOR = new M5Q();
    public static final M5E LIZ = new M5E((byte) 0);
    public static ScheduledThreadPoolExecutor LIZIZ;
    public final String LJFF = "device_auth";

    public int describeContents() {
        return 0;
    }

    public final String LIZ() {
        return this.LJFF;
    }

    static {
        Covode.recordClassIndex(41919);
    }

    public final void LIZIZ() {
        LJFF().LIZ(LoginClient.Result.LIZ.LIZ(LJFF().LJII, "User canceled log in."));
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public DeviceAuthMethodHandler(Parcel parcel) {
        super(parcel);
        M12.LIZ((Object) parcel);
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public DeviceAuthMethodHandler(LoginClient loginClient) {
        super(loginClient);
        M12.LIZ((Object) loginClient);
    }

    public final int LIZ(LoginClient.Request request) {
        M12.LIZ((Object) request);
        1hK LIZ2 = LJFF().LIZ();
        if (LIZ2 == null || LIZ2.isFinishing()) {
            return 1;
        }
        DeviceAuthDialog deviceAuthDialog = new DeviceAuthDialog();
        deviceAuthDialog.show(LIZ2.getSupportFragmentManager(), "login_with_facebook");
        deviceAuthDialog.LIZ(request);
        return 1;
    }
}
