84 lines
2.1 KiB
Smali
84 lines
2.1 KiB
Smali
.class public final Lcom/discord/widgets/media/WidgetQRScanner$onViewBoundOrOnResume$1;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetQRScanner.kt"
|
|
|
|
# interfaces
|
|
.implements Lrx/functions/Action0;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/media/WidgetQRScanner;->onViewBoundOrOnResume()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Lcom/discord/widgets/media/WidgetQRScanner;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/widgets/media/WidgetQRScanner;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/media/WidgetQRScanner$onViewBoundOrOnResume$1;->this$0:Lcom/discord/widgets/media/WidgetQRScanner;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final call()V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/media/WidgetQRScanner$onViewBoundOrOnResume$1;->this$0:Lcom/discord/widgets/media/WidgetQRScanner;
|
|
|
|
invoke-static {v0}, Lcom/discord/widgets/media/WidgetQRScanner;->access$getScannerView$p(Lcom/discord/widgets/media/WidgetQRScanner;)Lme/dm7/barcodescanner/zxing/ZXingScannerView;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, v0, Ll0/a/a/a/a;->h:Ll0/a/a/a/c;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
new-instance v1, Ll0/a/a/a/c;
|
|
|
|
invoke-direct {v1, v0}, Ll0/a/a/a/c;-><init>(Ll0/a/a/a/a;)V
|
|
|
|
iput-object v1, v0, Ll0/a/a/a/a;->h:Ll0/a/a/a/c;
|
|
|
|
:cond_0
|
|
iget-object v0, v0, Ll0/a/a/a/a;->h:Ll0/a/a/a/c;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
new-instance v1, Landroid/os/Handler;
|
|
|
|
invoke-virtual {v0}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
|
|
|
new-instance v2, Ll0/a/a/a/b;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-direct {v2, v0, v3}, Ll0/a/a/a/b;-><init>(Ll0/a/a/a/c;I)V
|
|
|
|
invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
throw v0
|
|
.end method
|