a.smali
.class public Lcom/tencent/open/c/a;
.super Landroid/widget/RelativeLayout;
.source "ProGuard"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/tencent/open/c/a$a;
}
.end annotation
# static fields
.field private static final a:Ljava/lang/String;
# instance fields
.field private b:Landroid/graphics/Rect;
.field private c:Z
.field private d:Lcom/tencent/open/c/a$a;
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 16
const-class v0, Lcom/tencent/open/c/a;
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/tencent/open/c/a;->a:Ljava/lang/String;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.registers 4
.prologue
const/4 v1, 0x0
.line 36
invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V
.line 18
iput-object v1, p0, Lcom/tencent/open/c/a;->b:Landroid/graphics/Rect;
.line 20
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/tencent/open/c/a;->c:Z
.line 33
iput-object v1, p0, Lcom/tencent/open/c/a;->d:Lcom/tencent/open/c/a$a;
.line 38
iget-object v0, p0, Lcom/tencent/open/c/a;->b:Landroid/graphics/Rect;
if-nez v0, :cond_16
.line 39
new-instance v0, Landroid/graphics/Rect;
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
iput-object v0, p0, Lcom/tencent/open/c/a;->b:Landroid/graphics/Rect;
.line 41
:cond_16
return-void
.end method
# virtual methods
.method public a(Lcom/tencent/open/c/a$a;)V
.registers 2
.prologue
.line 52
iput-object p1, p0, Lcom/tencent/open/c/a;->d:Lcom/tencent/open/c/a$a;
.line 53
return-void
.end method
.method protected onMeasure(II)V
.registers 7
.prologue
.line 59
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v1
.line 61
invoke-virtual {p0}, Lcom/tencent/open/c/a;->getContext()Landroid/content/Context;
move-result-object v0
check-cast v0, Landroid/app/Activity;
.line 63
invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
move-result-object v2
invoke-virtual {v2}, Landroid/view/Window;->getDecorView()Landroid/view/View;
move-result-object v2
iget-object v3, p0, Lcom/tencent/open/c/a;->b:Landroid/graphics/Rect;
invoke-virtual {v2, v3}, Landroid/view/View;->getWindowVisibleDisplayFrame(Landroid/graphics/Rect;)V
.line 65
iget-object v2, p0, Lcom/tencent/open/c/a;->b:Landroid/graphics/Rect;
iget v2, v2, Landroid/graphics/Rect;->top:I
.line 67
invoke-virtual {v0}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;
move-result-object v0
invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;
move-result-object v0
invoke-virtual {v0}, Landroid/view/Display;->getHeight()I
move-result v0
.line 69
sub-int/2addr v0, v2
sub-int/2addr v0, v1
.line 73
iget-object v2, p0, Lcom/tencent/open/c/a;->d:Lcom/tencent/open/c/a$a;
if-eqz v2, :cond_4c
if-eqz v1, :cond_4c
.line 75
const/16 v1, 0x64
if-le v0, v1, :cond_50
.line 77
iget-object v0, p0, Lcom/tencent/open/c/a;->d:Lcom/tencent/open/c/a$a;
iget-object v1, p0, Lcom/tencent/open/c/a;->b:Landroid/graphics/Rect;
invoke-virtual {v1}, Landroid/graphics/Rect;->height()I
move-result v1
invoke-static {v1}, Ljava/lang/Math;->abs(I)I
move-result v1
invoke-virtual {p0}, Lcom/tencent/open/c/a;->getPaddingBottom()I
move-result v2
sub-int/2addr v1, v2
invoke-virtual {p0}, Lcom/tencent/open/c/a;->getPaddingTop()I
move-result v2
sub-int/2addr v1, v2
invoke-interface {v0, v1}, Lcom/tencent/open/c/a$a;->a(I)V
.line 98
:cond_4c
:goto_4c
invoke-super {p0, p1, p2}, Landroid/widget/RelativeLayout;->onMeasure(II)V
.line 99
return-void
.line 83
:cond_50
iget-object v0, p0, Lcom/tencent/open/c/a;->d:Lcom/tencent/open/c/a$a;
invoke-interface {v0}, Lcom/tencent/open/c/a$a;->a()V
goto :goto_4c
.end method