a.smali
.class public final Lcom/singbox/party/search/a;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroid/text/InputFilter;
# instance fields
.field private final a:I
.field private final b:Lkotlin/f/a/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/f/a/a<",
"Lkotlin/w;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(ILkotlin/f/a/a;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Lkotlin/f/a/a<",
"Lkotlin/w;",
">;)V"
}
.end annotation
.line 220
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Lcom/singbox/party/search/a;->a:I
iput-object p2, p0, Lcom/singbox/party/search/a;->b:Lkotlin/f/a/a;
return-void
.end method
.method public synthetic constructor <init>(ILkotlin/f/a/a;ILkotlin/f/b/j;)V
.registers 5
and-int/lit8 p3, p3, 0x2
if-eqz p3, :cond_5
const/4 p2, 0x0
.line 221
:cond_5
invoke-direct {p0, p1, p2}, Lcom/singbox/party/search/a;-><init>(ILkotlin/f/a/a;)V
return-void
.end method
# virtual methods
.method public final filter(Ljava/lang/CharSequence;IILandroid/text/Spanned;II)Ljava/lang/CharSequence;
.registers 8
const-string v0, "source"
invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "dest"
invoke-static {p4, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 225
iget v0, p0, Lcom/singbox/party/search/a;->a:I
invoke-interface {p4}, Landroid/text/Spanned;->length()I
move-result p4
sub-int/2addr p6, p5
sub-int/2addr p4, p6
sub-int/2addr v0, p4
const-string p4, ""
if-gtz v0, :cond_21
.line 228
iget-object p1, p0, Lcom/singbox/party/search/a;->b:Lkotlin/f/a/a;
if-eqz p1, :cond_1e
invoke-interface {p1}, Lkotlin/f/a/a;->invoke()Ljava/lang/Object;
.line 229
:cond_1e
check-cast p4, Ljava/lang/CharSequence;
return-object p4
:cond_21
sub-int/2addr p3, p2
if-lt v0, p3, :cond_26
const/4 p1, 0x0
return-object p1
.line 235
:cond_26
iget-object p3, p0, Lcom/singbox/party/search/a;->b:Lkotlin/f/a/a;
if-eqz p3, :cond_2d
invoke-interface {p3}, Lkotlin/f/a/a;->invoke()Ljava/lang/Object;
:cond_2d
add-int/2addr v0, p2
add-int/lit8 p3, v0, -0x1
.line 237
invoke-interface {p1, p3}, Ljava/lang/CharSequence;->charAt(I)C
move-result p3
invoke-static {p3}, Ljava/lang/Character;->isHighSurrogate(C)Z
move-result p3
if-eqz p3, :cond_41
add-int/lit8 v0, v0, -0x1
if-ne v0, p2, :cond_41
.line 240
check-cast p4, Ljava/lang/CharSequence;
return-object p4
.line 243
:cond_41
invoke-interface {p1, p2, v0}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;
move-result-object p1
return-object p1
.end method