.class public abstract Lcom/helpshift/exception/HSUncaughtExceptionHandler; .super Ljava/lang/Object; .source "SourceFile" # direct methods .method public static init()V .locals 2 .line 24 invoke-static {}, Ljava/lang/Thread;->getDefaultUncaughtExceptionHandler()Ljava/lang/Thread$UncaughtExceptionHandler; move-result-object v0 .line 27 new-instance v1, Lcom/helpshift/exception/HSUncaughtExceptionHandler$1; invoke-direct {v1, v0}, Lcom/helpshift/exception/HSUncaughtExceptionHandler$1;->(Ljava/lang/Thread$UncaughtExceptionHandler;)V invoke-static {v1}, Ljava/lang/Thread;->setDefaultUncaughtExceptionHandler(Ljava/lang/Thread$UncaughtExceptionHandler;)V return-void .end method .method public static isCausedByHelpshift(Ljava/lang/Throwable;)Z .locals 3 const/4 v0, 0x0 if-nez p0, :cond_0 return v0 .line 56 :cond_0 :try_start_0 invoke-static {p0}, Landroid/util/Log;->getStackTraceString(Ljava/lang/Throwable;)Ljava/lang/String; move-result-object p0 const-class v1, Lcom/helpshift/Helpshift; .line 58 invoke-virtual {v1}, Ljava/lang/Class;->getPackage()Ljava/lang/Package; move-result-object v1 invoke-virtual {v1}, Ljava/lang/Package;->getName()Ljava/lang/String; move-result-object v1 .line 59 invoke-virtual {p0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z move-result p0 :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 return p0 :catch_0 move-exception p0 const-string v1, "UncghtExptnHndlr" const-string v2, "Error determining crash from Helpshift" .line 61 invoke-static {v1, v2, p0}, Lcom/helpshift/log/HSLogger;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V return v0 .end method