2019-12-06 03:29:40 +00:00
.class public final L androidx/appcompat/app/AppCompatDelegateImpl$1 ;
2019-07-24 11:27:29 +00:00
.super L java/lang/Object ;
.source "AppCompatDelegateImpl.java"
# interfaces
.implements L java/lang/Thread$UncaughtExceptionHandler ;
# annotations
.annotation system L dalvik/annotation/EnclosingClass ;
value = L androidx/appcompat/app/AppCompatDelegateImpl ;
.end annotation
.annotation system L dalvik/annotation/InnerClass ;
2019-12-06 03:29:40 +00:00
accessFlags = 0x9
2019-07-24 11:27:29 +00:00
name = null
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public final synthetic val$defHandler : L java/lang/Thread$UncaughtExceptionHandler ;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init> ( L java/lang/Thread$UncaughtExceptionHandler ;) V
2019-07-24 11:27:29 +00:00
.locals 0
iput-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl$1 ;-> val$defHandler : L java/lang/Thread$UncaughtExceptionHandler ;
invoke-direct { p0 } , L java/lang/Object ;-> <init> ( ) V
return-void
.end method
.method private shouldWrapException ( L java/lang/Throwable ;) Z
.locals 2
instance-of v0 , p1 , L android/content/res/Resources$NotFoundException ;
const/4 v1 , 0x0
if-eqz v0 , :cond_1
invoke-virtual { p1 } , L java/lang/Throwable ;-> getMessage ( ) L java/lang/String ;
move-result-object p1
if-eqz p1 , :cond_1
const-string v0 , "drawable"
invoke-virtual { p1 , v0 } , L java/lang/String ;-> contains ( L java/lang/CharSequence ;) Z
move-result v0
if-nez v0 , :cond_0
const-string v0 , "Drawable"
invoke-virtual { p1 , v0 } , L java/lang/String ;-> contains ( L java/lang/CharSequence ;) Z
move-result p1
if-eqz p1 , :cond_1
:cond_0
2019-12-06 03:29:40 +00:00
const/4 v1 , 0x1
2019-07-24 11:27:29 +00:00
:cond_1
return v1
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public uncaughtException ( L java/lang/Thread ;L java/lang/Throwable ;) V
2019-07-24 11:27:29 +00:00
.locals 3
invoke-direct { p0 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl$1 ;-> shouldWrapException ( L java/lang/Throwable ;) Z
move-result v0
if-eqz v0 , :cond_0
new-instance v0 , L android/content/res/Resources$NotFoundException ;
new-instance v1 , L java/lang/StringBuilder ;
invoke-direct { v1 } , L java/lang/StringBuilder ;-> <init> ( ) V
invoke-virtual { p2 } , L java/lang/Throwable ;-> getMessage ( ) L java/lang/String ;
move-result-object v2
invoke-virtual { v1 , v2 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
const-string v2 , ". If the resource you are trying to use is a vector resource, you may be referencing it in an unsupported way. See AppCompatDelegate.setCompatVectorFromResourcesEnabled() for more info."
invoke-virtual { v1 , v2 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
invoke-virtual { v1 } , L java/lang/StringBuilder ;-> toString ( ) L java/lang/String ;
move-result-object v1
invoke-direct { v0 , v1 } , L android/content/res/Resources$NotFoundException ;-> <init> ( L java/lang/String ;) V
invoke-virtual { p2 } , L java/lang/Throwable ;-> getCause ( ) L java/lang/Throwable ;
move-result-object v1
invoke-virtual { v0 , v1 } , L java/lang/Throwable ;-> initCause ( L java/lang/Throwable ;) L java/lang/Throwable ;
invoke-virtual { p2 } , L java/lang/Throwable ;-> getStackTrace ( ) [ L java/lang/StackTraceElement ;
move-result-object p2
invoke-virtual { v0 , p2 } , L java/lang/Throwable ;-> setStackTrace ( [ L java/lang/StackTraceElement ;) V
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl$1 ;-> val$defHandler : L java/lang/Thread$UncaughtExceptionHandler ;
invoke-interface { p2 , p1 , v0 } , L java/lang/Thread$UncaughtExceptionHandler ;-> uncaughtException ( L java/lang/Thread ;L java/lang/Throwable ;) V
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl$1 ;-> val$defHandler : L java/lang/Thread$UncaughtExceptionHandler ;
invoke-interface { v0 , p1 , p2 } , L java/lang/Thread$UncaughtExceptionHandler ;-> uncaughtException ( L java/lang/Thread ;L java/lang/Throwable ;) V
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
.end method