PhotoViewer$20.smali
.class Lim/tpelyyftgw/ui/PhotoViewer$20;
.super Ljava/lang/Object;
.source "PhotoViewer.java"
# interfaces
.implements Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$PhotoViewerCaptionEnterViewDelegate;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lim/tpelyyftgw/ui/PhotoViewer;->setParentActivity(Landroid/app/Activity;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lim/tpelyyftgw/ui/PhotoViewer;)V
.registers 2
.param p1, "this$0" # Lim/tpelyyftgw/ui/PhotoViewer;
.line 3347
iput-object p1, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onCaptionEnter()V
.registers 3
.line 3350
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
const/4 v1, 0x1
# invokes: Lim/tpelyyftgw/ui/PhotoViewer;->closeCaptionEnter(Z)V
invoke-static {v0, v1}, Lim/tpelyyftgw/ui/PhotoViewer;->access$7200(Lim/tpelyyftgw/ui/PhotoViewer;Z)V
.line 3351
return-void
.end method
.method public onTextChanged(Ljava/lang/CharSequence;)V
.registers 7
.param p1, "text" # Ljava/lang/CharSequence;
.line 3355
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->mentionsAdapter:Lim/tpelyyftgw/ui/adapters/MentionsAdapter;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$10100(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/adapters/MentionsAdapter;
move-result-object v0
if-eqz v0, :cond_3a
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v0
if-eqz v0, :cond_3a
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->parentChatActivity:Lim/tpelyyftgw/ui/ChatActivity;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$8300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/ChatActivity;
move-result-object v0
if-eqz v0, :cond_3a
if-eqz p1, :cond_3a
.line 3356
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->mentionsAdapter:Lim/tpelyyftgw/ui/adapters/MentionsAdapter;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$10100(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/adapters/MentionsAdapter;
move-result-object v0
invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object v1
iget-object v2, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v2
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->getCursorPosition()I
move-result v2
iget-object v3, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->parentChatActivity:Lim/tpelyyftgw/ui/ChatActivity;
invoke-static {v3}, Lim/tpelyyftgw/ui/PhotoViewer;->access$8300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/ChatActivity;
move-result-object v3
iget-object v3, v3, Lim/tpelyyftgw/ui/ChatActivity;->messages:Ljava/util/ArrayList;
const/4 v4, 0x0
invoke-virtual {v0, v1, v2, v3, v4}, Lim/tpelyyftgw/ui/adapters/MentionsAdapter;->searchUsernameOrHashtag(Ljava/lang/String;ILjava/util/ArrayList;Z)V
.line 3358
:cond_3a
return-void
.end method
.method public onWindowSizeChanged(I)V
.registers 7
.param p1, "size" # I
.line 3362
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->mentionsAdapter:Lim/tpelyyftgw/ui/adapters/MentionsAdapter;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$10100(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/adapters/MentionsAdapter;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/adapters/MentionsAdapter;->getItemCount()I
move-result v0
const/4 v1, 0x3
invoke-static {v1, v0}, Ljava/lang/Math;->min(II)I
move-result v0
mul-int/lit8 v0, v0, 0x24
iget-object v2, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->mentionsAdapter:Lim/tpelyyftgw/ui/adapters/MentionsAdapter;
invoke-static {v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$10100(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/adapters/MentionsAdapter;
move-result-object v2
invoke-virtual {v2}, Lim/tpelyyftgw/ui/adapters/MentionsAdapter;->getItemCount()I
move-result v2
const/4 v3, 0x0
if-le v2, v1, :cond_21
const/16 v1, 0x12
goto :goto_22
:cond_21
const/4 v1, 0x0
:goto_22
add-int/2addr v0, v1
int-to-float v0, v0
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v0
.line 3363
.local v0, "height":I
invoke-static {}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->getCurrentActionBarHeight()I
move-result v1
mul-int/lit8 v1, v1, 0x2
sub-int v1, p1, v1
const/4 v2, 0x4
if-ge v1, v0, :cond_56
.line 3364
iget-object v1, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# setter for: Lim/tpelyyftgw/ui/PhotoViewer;->allowMentions:Z
invoke-static {v1, v3}, Lim/tpelyyftgw/ui/PhotoViewer;->access$10202(Lim/tpelyyftgw/ui/PhotoViewer;Z)Z
.line 3365
iget-object v1, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->mentionListView:Lim/tpelyyftgw/ui/components/RecyclerListView;
invoke-static {v1}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4400(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v1
if-eqz v1, :cond_79
iget-object v1, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->mentionListView:Lim/tpelyyftgw/ui/components/RecyclerListView;
invoke-static {v1}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4400(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v1
invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getVisibility()I
move-result v1
if-nez v1, :cond_79
.line 3366
iget-object v1, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->mentionListView:Lim/tpelyyftgw/ui/components/RecyclerListView;
invoke-static {v1}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4400(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v1
invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/components/RecyclerListView;->setVisibility(I)V
goto :goto_79
.line 3369
:cond_56
iget-object v1, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
const/4 v4, 0x1
# setter for: Lim/tpelyyftgw/ui/PhotoViewer;->allowMentions:Z
invoke-static {v1, v4}, Lim/tpelyyftgw/ui/PhotoViewer;->access$10202(Lim/tpelyyftgw/ui/PhotoViewer;Z)Z
.line 3370
iget-object v1, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->mentionListView:Lim/tpelyyftgw/ui/components/RecyclerListView;
invoke-static {v1}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4400(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v1
if-eqz v1, :cond_79
iget-object v1, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->mentionListView:Lim/tpelyyftgw/ui/components/RecyclerListView;
invoke-static {v1}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4400(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v1
invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getVisibility()I
move-result v1
if-ne v1, v2, :cond_79
.line 3371
iget-object v1, p0, Lim/tpelyyftgw/ui/PhotoViewer$20;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->mentionListView:Lim/tpelyyftgw/ui/components/RecyclerListView;
invoke-static {v1}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4400(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v1
invoke-virtual {v1, v3}, Lim/tpelyyftgw/ui/components/RecyclerListView;->setVisibility(I)V
.line 3374
:cond_79
:goto_79
return-void
.end method