134 lines
3.0 KiB
Smali
134 lines
3.0 KiB
Smali
.class Lcom/vk/camera/b$a;
|
|
.super Landroid/view/View;
|
|
.source "BaseCameraView.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/vk/camera/b;->j()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/graphics/Paint;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/vk/camera/b;Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p2}, Landroid/view/View;-><init>(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Landroid/graphics/Paint;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/vk/camera/b$a;->a:Landroid/graphics/Paint;
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/vk/camera/b$a;->a:Landroid/graphics/Paint;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/vk/camera/b$a;->a:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setDither(Z)V
|
|
|
|
.line 4
|
|
iget-object v0, p0, Lcom/vk/camera/b$a;->a:Landroid/graphics/Paint;
|
|
|
|
sget-object v1, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
|
|
|
|
.line 5
|
|
iget-object v0, p0, Lcom/vk/camera/b$a;->a:Landroid/graphics/Paint;
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V
|
|
|
|
.line 6
|
|
iget-object v0, p0, Lcom/vk/camera/b$a;->a:Landroid/graphics/Paint;
|
|
|
|
const v1, 0x1ffffff
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onDraw(Landroid/graphics/Canvas;)V
|
|
.locals 13
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/view/View;->onDraw(Landroid/graphics/Canvas;)V
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/vk/camera/b$a;->a:Landroid/graphics/Paint;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 3
|
|
invoke-direct {p0}, Lcom/vk/camera/b$a;->a()V
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
.line 4
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->getHeight()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v5, v0
|
|
|
|
iget-object v6, p0, Lcom/vk/camera/b$a;->a:Landroid/graphics/Paint;
|
|
|
|
move-object v1, p1
|
|
|
|
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
.line 5
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->getWidth()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v10, v0
|
|
|
|
const/4 v11, 0x0
|
|
|
|
iget-object v12, p0, Lcom/vk/camera/b$a;->a:Landroid/graphics/Paint;
|
|
|
|
move-object v7, p1
|
|
|
|
invoke-virtual/range {v7 .. v12}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V
|
|
|
|
return-void
|
|
.end method
|