KeyboardWatcherComponent.smali
.class public final Lcom/imo/android/imoim/feeds/ui/detail/components/comment/KeyboardWatcherComponent;
.super Lsg/bigo/core/component/AbstractComponent;
.source "SourceFile"
# interfaces
.implements Lcom/imo/android/imoim/feeds/ui/detail/utils/h$a;
.implements Lsg/bigo/core/component/b/b;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lsg/bigo/core/component/AbstractComponent<",
"Lsg/bigo/core/mvp/presenter/a;",
"Lcom/imo/android/imoim/feeds/ui/a/a/a;",
"Lcom/imo/android/imoim/feeds/ui/detail/e;",
">;",
"Lcom/imo/android/imoim/feeds/ui/detail/utils/h$a;",
"Lsg/bigo/core/component/b/b;"
}
.end annotation
# instance fields
.field private a:Lcom/imo/android/imoim/feeds/ui/detail/utils/h;
# direct methods
.method public constructor <init>(Lsg/bigo/core/component/c;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lsg/bigo/core/component/c<",
"+",
"Lsg/bigo/core/component/c/a;",
">;)V"
}
.end annotation
const-string v0, "help"
invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 23
invoke-direct {p0, p1}, Lsg/bigo/core/component/AbstractComponent;-><init>(Lsg/bigo/core/component/c;)V
return-void
.end method
# virtual methods
.method public final J_()V
.registers 4
.line 29
new-instance v0, Lcom/imo/android/imoim/feeds/ui/detail/utils/h;
iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/KeyboardWatcherComponent;->h:Lsg/bigo/core/component/c/a;
const-string v2, "mActivityServiceWrapper"
invoke-static {v1, v2}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v1, Lcom/imo/android/imoim/feeds/ui/detail/e;
invoke-interface {v1}, Lcom/imo/android/imoim/feeds/ui/detail/e;->b()Landroid/content/Context;
move-result-object v1
invoke-direct {v0, v1}, Lcom/imo/android/imoim/feeds/ui/detail/utils/h;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/KeyboardWatcherComponent;->a:Lcom/imo/android/imoim/feeds/ui/detail/utils/h;
if-eqz v0, :cond_1c
.line 30
move-object v1, p0
check-cast v1, Lcom/imo/android/imoim/feeds/ui/detail/utils/h$a;
invoke-virtual {v0, v1}, Lcom/imo/android/imoim/feeds/ui/detail/utils/h;->a(Lcom/imo/android/imoim/feeds/ui/detail/utils/h$a;)V
:cond_1c
return-void
.end method
.method public final a(I)V
.registers 4
.line 56
new-instance v0, Landroid/util/SparseArray;
const/4 v1, 0x1
invoke-direct {v0, v1}, Landroid/util/SparseArray;-><init>(I)V
.line 57
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
const/4 v1, 0x0
invoke-virtual {v0, v1, p1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
.line 58
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/KeyboardWatcherComponent;->f:Lsg/bigo/core/component/a/d;
sget-object v1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;
.line 2021
invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->b()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;
move-result-object v1
.line 58
check-cast v1, Lsg/bigo/core/component/a/b;
invoke-interface {p1, v1, v0}, Lsg/bigo/core/component/a/d;->a(Lsg/bigo/core/component/a/b;Landroid/util/SparseArray;)V
return-void
.end method
.method public final a(Landroidx/lifecycle/LifecycleOwner;)V
.registers 4
.line 50
invoke-super {p0, p1}, Lsg/bigo/core/component/AbstractComponent;->a(Landroidx/lifecycle/LifecycleOwner;)V
.line 51
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/KeyboardWatcherComponent;->a:Lcom/imo/android/imoim/feeds/ui/detail/utils/h;
const/4 v0, 0x0
if-eqz p1, :cond_13
.line 1045
iput-object v0, p1, Lcom/imo/android/imoim/feeds/ui/detail/utils/h;->a:Landroid/content/Context;
.line 1046
iget-object v1, p1, Lcom/imo/android/imoim/feeds/ui/detail/utils/h;->b:Ljava/util/List;
if-eqz v1, :cond_13
.line 1047
iget-object p1, p1, Lcom/imo/android/imoim/feeds/ui/detail/utils/h;->b:Ljava/util/List;
invoke-interface {p1}, Ljava/util/List;->clear()V
.line 52
:cond_13
iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/KeyboardWatcherComponent;->a:Lcom/imo/android/imoim/feeds/ui/detail/utils/h;
return-void
.end method
.method public final bridge synthetic a(Lsg/bigo/core/component/a/b;Landroid/util/SparseArray;)V
.registers 3
return-void
.end method
.method public final a(Lsg/bigo/core/component/b/c;)V
.registers 3
const-string v0, "manager"
invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 80
const-class v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/KeyboardWatcherComponent;
invoke-interface {p1, v0}, Lsg/bigo/core/component/b/c;->a(Ljava/lang/Class;)V
return-void
.end method
.method public final b()V
.registers 1
return-void
.end method
.method public final b(I)V
.registers 4
.line 62
new-instance v0, Landroid/util/SparseArray;
const/4 v1, 0x1
invoke-direct {v0, v1}, Landroid/util/SparseArray;-><init>(I)V
.line 63
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
const/4 v1, 0x0
invoke-virtual {v0, v1, p1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
.line 64
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/KeyboardWatcherComponent;->f:Lsg/bigo/core/component/a/d;
sget-object v1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;
.line 2026
invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->c()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;
move-result-object v1
.line 64
check-cast v1, Lsg/bigo/core/component/a/b;
invoke-interface {p1, v1, v0}, Lsg/bigo/core/component/a/d;->a(Lsg/bigo/core/component/a/b;Landroid/util/SparseArray;)V
return-void
.end method
.method public final b(Landroidx/lifecycle/LifecycleOwner;)V
.registers 3
.line 34
invoke-super {p0, p1}, Lsg/bigo/core/component/AbstractComponent;->b(Landroidx/lifecycle/LifecycleOwner;)V
.line 35
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/KeyboardWatcherComponent;->h:Lsg/bigo/core/component/c/a;
const-string v0, "mActivityServiceWrapper"
invoke-static {p1, v0}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p1, Lcom/imo/android/imoim/feeds/ui/detail/e;
invoke-interface {p1}, Lcom/imo/android/imoim/feeds/ui/detail/e;->c()Landroid/view/Window;
move-result-object p1
if-eqz p1, :cond_2b
invoke-virtual {p1}, Landroid/view/Window;->getDecorView()Landroid/view/View;
move-result-object p1
if-nez p1, :cond_19
goto :goto_2b
:cond_19
const-string v0, "mActivityServiceWrapper.\u2026ndow?.decorView ?: return"
invoke-static {p1, v0}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V
.line 36
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/KeyboardWatcherComponent;->a:Lcom/imo/android/imoim/feeds/ui/detail/utils/h;
if-eqz v0, :cond_2b
.line 37
invoke-virtual {p1}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
move-result-object p1
check-cast v0, Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
invoke-virtual {p1, v0}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
:cond_2b
:goto_2b
return-void
.end method
.method public final b(Lsg/bigo/core/component/b/c;)V
.registers 4
const-string v0, "manager"
invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 84
const-class v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/KeyboardWatcherComponent;
move-object v1, p0
check-cast v1, Lsg/bigo/core/component/b/b;
invoke-interface {p1, v0, v1}, Lsg/bigo/core/component/b/c;->a(Ljava/lang/Class;Lsg/bigo/core/component/b/b;)V
return-void
.end method
.method public final c()V
.registers 4
.line 68
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/KeyboardWatcherComponent;->f:Lsg/bigo/core/component/a/d;
sget-object v1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;
.line 2031
invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->d()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;
move-result-object v1
.line 68
check-cast v1, Lsg/bigo/core/component/a/b;
const/4 v2, 0x0
invoke-interface {v0, v1, v2}, Lsg/bigo/core/component/a/d;->a(Lsg/bigo/core/component/a/b;Landroid/util/SparseArray;)V
return-void
.end method
.method public final c(Landroidx/lifecycle/LifecycleOwner;)V
.registers 3
.line 42
invoke-super {p0, p1}, Lsg/bigo/core/component/AbstractComponent;->c(Landroidx/lifecycle/LifecycleOwner;)V
.line 43
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/KeyboardWatcherComponent;->h:Lsg/bigo/core/component/c/a;
const-string v0, "mActivityServiceWrapper"
invoke-static {p1, v0}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p1, Lcom/imo/android/imoim/feeds/ui/detail/e;
invoke-interface {p1}, Lcom/imo/android/imoim/feeds/ui/detail/e;->c()Landroid/view/Window;
move-result-object p1
if-eqz p1, :cond_2b
invoke-virtual {p1}, Landroid/view/Window;->getDecorView()Landroid/view/View;
move-result-object p1
if-nez p1, :cond_19
goto :goto_2b
:cond_19
const-string v0, "mActivityServiceWrapper.\u2026ndow?.decorView ?: return"
invoke-static {p1, v0}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V
.line 44
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/KeyboardWatcherComponent;->a:Lcom/imo/android/imoim/feeds/ui/detail/utils/h;
if-eqz v0, :cond_2b
.line 45
invoke-virtual {p1}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
move-result-object p1
check-cast v0, Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
invoke-virtual {p1, v0}, Landroid/view/ViewTreeObserver;->removeOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
:cond_2b
:goto_2b
return-void
.end method
.method public final bridge synthetic u()[Lsg/bigo/core/component/a/b;
.registers 2
const/4 v0, 0x0
return-object v0
.end method