41 lines
1 KiB
Smali
41 lines
1 KiB
Smali
|
.class public final Landroidx/core/content/ContentProviderCompat;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "ContentProviderCompat.java"
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static requireContext(Landroid/content/ContentProvider;)Landroid/content/Context;
|
||
|
.locals 1
|
||
|
.param p0 # Landroid/content/ContentProvider;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
|
||
|
invoke-virtual {p0}, Landroid/content/ContentProvider;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:cond_0
|
||
|
new-instance p0, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
const-string v0, "Cannot find context from the provider."
|
||
|
|
||
|
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p0
|
||
|
.end method
|