NativeJpegTranscoderSoLoader.smali
.class public Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoderSoLoader;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static sInitialized:Z
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static declared-synchronized ensure()V
.registers 3
const-class v0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoderSoLoader;
monitor-enter v0
.line 1
:try_start_3
sget-boolean v1, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoderSoLoader;->sInitialized:Z
:try_end_5
.catchall {:try_start_3 .. :try_end_5} :catchall_24
if-nez v1, :cond_22
:try_start_7
const-string v1, "native-imagetranscoder"
.line 2
invoke-static {v1}, Lcom/facebook/soloader/SoLoader;->loadLibrary(Ljava/lang/String;)Z
:try_end_c
.catchall {:try_start_7 .. :try_end_c} :catchall_d
goto :goto_1d
:catchall_d
move-exception v1
.line 3
:try_start_e
invoke-static {}, Lcom/facebook/util/ContextProvider;->getContext()Landroid/content/Context;
move-result-object v2
if-eqz v2, :cond_21
.line 4
invoke-static {}, Lcom/facebook/util/ContextProvider;->getContext()Landroid/content/Context;
move-result-object v1
const-string v2, "native-imagetranscoder"
invoke-static {v1, v2}, Lcom/getkeepsafe/relinker/c;->a(Landroid/content/Context;Ljava/lang/String;)V
:goto_1d
const/4 v1, 0x1
.line 5
sput-boolean v1, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoderSoLoader;->sInitialized:Z
goto :goto_22
.line 6
:cond_21
throw v1
:try_end_22
.catchall {:try_start_e .. :try_end_22} :catchall_24
.line 7
:cond_22
:goto_22
monitor-exit v0
return-void
:catchall_24
move-exception v1
monitor-exit v0
throw v1
.end method