161 lines
4.5 KiB
Smali
161 lines
4.5 KiB
Smali
.class public abstract Lcom/moji/newliveview/base/NeedShowInputBoxActivity;
|
|
.super Lcom/moji/newliveview/base/BaseLiveViewActivity;
|
|
.source "NeedShowInputBoxActivity.java"
|
|
|
|
|
|
# instance fields
|
|
.field protected b:Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout;
|
|
|
|
.field private c:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 16
|
|
invoke-direct {p0}, Lcom/moji/newliveview/base/BaseLiveViewActivity;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private l()V
|
|
.locals 1
|
|
|
|
.line 48
|
|
new-instance v0, Lcom/moji/newliveview/base/NeedShowInputBoxActivity$2;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/newliveview/base/NeedShowInputBoxActivity$2;-><init>(Lcom/moji/newliveview/base/NeedShowInputBoxActivity;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/base/NeedShowInputBoxActivity;->c:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private m()V
|
|
.locals 2
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
value = {
|
|
"NewApi"
|
|
}
|
|
.end annotation
|
|
|
|
.line 86
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->C()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/base/NeedShowInputBoxActivity;->c:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 87
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/base/NeedShowInputBoxActivity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/moji/newliveview/base/NeedShowInputBoxActivity;->c:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->removeOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected b()V
|
|
.locals 2
|
|
|
|
.line 28
|
|
sget v0, Lcom/moji/newliveview/R$id;->root_layout:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/newliveview/base/NeedShowInputBoxActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout;
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/base/NeedShowInputBoxActivity;->b:Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout;
|
|
|
|
.line 29
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->C()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 30
|
|
invoke-direct {p0}, Lcom/moji/newliveview/base/NeedShowInputBoxActivity;->l()V
|
|
|
|
.line 31
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/base/NeedShowInputBoxActivity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
.line 32
|
|
invoke-virtual {v0}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/moji/newliveview/base/NeedShowInputBoxActivity;->c:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected c()V
|
|
.locals 2
|
|
|
|
.line 39
|
|
iget-object v0, p0, Lcom/moji/newliveview/base/NeedShowInputBoxActivity;->b:Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout;
|
|
|
|
new-instance v1, Lcom/moji/newliveview/base/NeedShowInputBoxActivity$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/newliveview/base/NeedShowInputBoxActivity$1;-><init>(Lcom/moji/newliveview/base/NeedShowInputBoxActivity;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout;->setOnActionDownListener(Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout$OnActionDownListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected abstract j()V
|
|
.end method
|
|
|
|
.method protected abstract k()Z
|
|
.end method
|
|
|
|
.method protected onDestroy()V
|
|
.locals 0
|
|
|
|
.line 80
|
|
invoke-super {p0}, Lcom/moji/newliveview/base/BaseLiveViewActivity;->onDestroy()V
|
|
|
|
.line 81
|
|
invoke-direct {p0}, Lcom/moji/newliveview/base/NeedShowInputBoxActivity;->m()V
|
|
|
|
return-void
|
|
.end method
|