granularity level: instruction
.class public Lcom/google/android/gms/common/internal/ApiExceptionUtil;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-base@@18.0.1"
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static fromStatus(Lcom/google/android/gms/common/api/Status;)Lcom/google/android/gms/common/api/ApiException;
.locals 1
invoke-virtual {p0}, Lcom/google/android/gms/common/api/Status;->hasResolution()Z
move-result v0
if-eqz v0, :cond_0
new-instance v0, Lcom/google/android/gms/common/api/ResolvableApiException;
invoke-direct {v0, p0}, Lcom/google/android/gms/common/api/ResolvableApiException;-><init>(Lcom/google/android/gms/common/api/Status;)V
return-object v0
:cond_0
new-instance v0, Lcom/google/android/gms/common/api/ApiException;
invoke-direct {v0, p0}, Lcom/google/android/gms/common/api/ApiException;-><init>(Lcom/google/android/gms/common/api/Status;)V
return-object v0
.end method