OrionAccountAlarmContentSetFragment$2$1.smali
.class Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;
.super Ljava/lang/Object;
# interfaces
.implements Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;->run()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;
.field final synthetic val$bottomMargin:I
.field final synthetic val$decorView:Landroid/view/View;
.field final synthetic val$marginParams:Landroid/view/ViewGroup$MarginLayoutParams;
# direct methods
.method constructor <init>(Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;Landroid/view/View;Landroid/view/ViewGroup$MarginLayoutParams;I)V
.registers 5
iput-object p1, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->this$1:Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;
iput-object p2, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->val$decorView:Landroid/view/View;
iput-object p3, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->val$marginParams:Landroid/view/ViewGroup$MarginLayoutParams;
iput p4, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->val$bottomMargin:I
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onGlobalLayout()V
.registers 7
new-instance v0, Landroid/graphics/Rect;
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
iget-object v1, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->val$decorView:Landroid/view/View;
invoke-virtual {v1, v0}, Landroid/view/View;->getWindowVisibleDisplayFrame(Landroid/graphics/Rect;)V
invoke-static {}, Lcom/sdk/orion/ui/baselibrary/utils/SystemUtil;->getScreenSize()Landroid/util/DisplayMetrics;
move-result-object v1
iget v1, v1, Landroid/util/DisplayMetrics;->heightPixels:I
iget v2, v0, Landroid/graphics/Rect;->bottom:I
sub-int v2, v1, v2
iget-object v3, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->this$1:Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;
iget-object v3, v3, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;->val$view:Landroid/view/View;
invoke-virtual {v3}, Landroid/view/View;->getHeight()I
move-result v3
if-lez v2, :cond_4e
iget-object v4, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->val$marginParams:Landroid/view/ViewGroup$MarginLayoutParams;
iget v4, v4, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
iget v5, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->val$bottomMargin:I
if-ne v4, v5, :cond_4e
iget-object v0, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->this$1:Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;
iget-object v0, v0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;->val$view:Landroid/view/View;
sub-int/2addr v1, v2
iget-object v2, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->this$1:Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;
iget-object v2, v2, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;->this$0:Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment;
# getter for: Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment;->mActivity:Landroid/app/Activity;
invoke-static {v2}, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment;->access$500(Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment;)Landroid/app/Activity;
move-result-object v2
const/high16 v4, 0x42800000 # 64.0f
invoke-static {v2, v4}, Lcom/sdk/orion/ui/baselibrary/utils/DensityUtil;->dip2px(Landroid/content/Context;F)I
move-result v2
sub-int/2addr v1, v2
invoke-virtual {v0, v1}, Landroid/view/View;->setBottom(I)V
iget-object v0, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->this$1:Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;
iget-object v0, v0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;->val$view:Landroid/view/View;
iget-object v1, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->this$1:Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;
iget-object v1, v1, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;->val$view:Landroid/view/View;
invoke-virtual {v1}, Landroid/view/View;->getBottom()I
move-result v1
sub-int/2addr v1, v3
invoke-virtual {v0, v1}, Landroid/view/View;->setTop(I)V
:cond_4d
:goto_4d
return-void
:cond_4e
if-nez v2, :cond_4d
iget-object v1, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->val$marginParams:Landroid/view/ViewGroup$MarginLayoutParams;
iget v1, v1, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
iget v2, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->val$bottomMargin:I
if-eq v1, v2, :cond_4d
iget-object v1, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->this$1:Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;
iget-object v1, v1, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;->val$view:Landroid/view/View;
iget v0, v0, Landroid/graphics/Rect;->bottom:I
invoke-virtual {v1, v0}, Landroid/view/View;->setTop(I)V
iget-object v0, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->this$1:Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;
iget-object v0, v0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;->val$view:Landroid/view/View;
iget-object v1, p0, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2$1;->this$1:Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;
iget-object v1, v1, Lcom/sdk/orion/lib/myalarm/fragment/OrionAccountAlarmContentSetFragment$2;->val$view:Landroid/view/View;
invoke-virtual {v1}, Landroid/view/View;->getTop()I
move-result v1
add-int/2addr v1, v3
invoke-virtual {v0, v1}, Landroid/view/View;->setBottom(I)V
goto :goto_4d
.end method