apkfuckery/com.discord/smali/com/camerakit/preview/CameraSurfaceView$a.smali
2020-03-26 06:26:27 +01:00

123 lines
3.3 KiB
Smali

.class public final Lcom/camerakit/preview/CameraSurfaceView$a;
.super Ly/u/b/k;
.source "CameraSurfaceView.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/camerakit/preview/CameraSurfaceView;->onSurfaceCreated(Ljavax/microedition/khronos/opengles/GL10;Ljavax/microedition/khronos/egl/EGLConfig;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ly/u/b/k;",
"Lkotlin/jvm/functions/Function2<",
"Ljava/lang/Integer;",
"Ljava/lang/Integer;",
"Lkotlin/Unit;",
">;"
}
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/camerakit/preview/CameraSurfaceView;
# direct methods
.method public constructor <init>(Lcom/camerakit/preview/CameraSurfaceView;)V
.locals 0
iput-object p1, p0, Lcom/camerakit/preview/CameraSurfaceView$a;->this$0:Lcom/camerakit/preview/CameraSurfaceView;
const/4 p1, 0x2
invoke-direct {p0, p1}, Ly/u/b/k;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Ljava/lang/Number;
invoke-virtual {p1}, Ljava/lang/Number;->intValue()I
move-result p1
check-cast p2, Ljava/lang/Number;
invoke-virtual {p2}, Ljava/lang/Number;->intValue()I
move-result p2
invoke-virtual {p0, p1, p2}, Lcom/camerakit/preview/CameraSurfaceView$a;->invoke(II)V
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object p1
.end method
.method public final invoke(II)V
.locals 3
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceView$a;->this$0:Lcom/camerakit/preview/CameraSurfaceView;
new-instance v1, Lcom/camerakit/preview/CameraSurfaceTexture;
invoke-direct {v1, p1, p2}, Lcom/camerakit/preview/CameraSurfaceTexture;-><init>(II)V
new-instance p1, Lcom/camerakit/preview/CameraSurfaceView$a$a;
invoke-direct {p1, p0}, Lcom/camerakit/preview/CameraSurfaceView$a$a;-><init>(Lcom/camerakit/preview/CameraSurfaceView$a;)V
invoke-virtual {v1, p1}, Landroid/graphics/SurfaceTexture;->setOnFrameAvailableListener(Landroid/graphics/SurfaceTexture$OnFrameAvailableListener;)V
iget-object p1, p0, Lcom/camerakit/preview/CameraSurfaceView$a;->this$0:Lcom/camerakit/preview/CameraSurfaceView;
invoke-virtual {p1}, Lcom/camerakit/preview/CameraSurfaceView;->getCameraSurfaceTextureListener()Le/g/i/a;
move-result-object p1
if-eqz p1, :cond_0
check-cast p1, Le/g/d;
iget-object p2, p1, Le/g/d;->a:Le/g/e;
iput-object v1, p2, Le/g/e;->q:Lcom/camerakit/preview/CameraSurfaceTexture;
sget-object v2, Le/g/e$e;->d:Le/g/e$e;
invoke-virtual {p2, v2}, Le/g/e;->setSurfaceState(Le/g/e$e;)V
iget-object p2, p1, Le/g/d;->a:Le/g/e;
invoke-virtual {p2}, Le/g/e;->getLifecycleState()Le/g/e$b;
move-result-object p2
sget-object v2, Le/g/e$b;->e:Le/g/e$b;
if-ne p2, v2, :cond_0
iget-object p1, p1, Le/g/d;->a:Le/g/e;
invoke-virtual {p1}, Le/g/e;->f()V
:cond_0
iput-object v1, v0, Lcom/camerakit/preview/CameraSurfaceView;->e:Lcom/camerakit/preview/CameraSurfaceTexture;
return-void
.end method