364 lines
9.4 KiB
Smali
364 lines
9.4 KiB
Smali
.class public Lcom/lytefast/flexinput/model/Attachment;
|
|
.super Ljava/lang/Object;
|
|
.source "Attachment.kt"
|
|
|
|
# interfaces
|
|
.implements Landroid/os/Parcelable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/lytefast/flexinput/model/Attachment$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Landroid/os/Parcelable;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/os/Parcelable$Creator<",
|
|
"Lcom/lytefast/flexinput/model/Attachment<",
|
|
"*>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final Companion:Lcom/lytefast/flexinput/model/Attachment$Companion;
|
|
|
|
|
|
# instance fields
|
|
.field private final data:Ljava/lang/Object;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"TT;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final displayName:Ljava/lang/String;
|
|
|
|
.field private final id:J
|
|
|
|
.field private final uri:Landroid/net/Uri;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lcom/lytefast/flexinput/model/Attachment$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/lytefast/flexinput/model/Attachment$Companion;-><init>(B)V
|
|
|
|
sput-object v0, Lcom/lytefast/flexinput/model/Attachment;->Companion:Lcom/lytefast/flexinput/model/Attachment$Companion;
|
|
|
|
new-instance v0, Lcom/lytefast/flexinput/model/Attachment$a;
|
|
|
|
invoke-direct {v0}, Lcom/lytefast/flexinput/model/Attachment$a;-><init>()V
|
|
|
|
check-cast v0, Landroid/os/Parcelable$Creator;
|
|
|
|
sput-object v0, Lcom/lytefast/flexinput/model/Attachment;->CREATOR:Landroid/os/Parcelable$Creator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(JLandroid/net/Uri;Ljava/lang/String;Ljava/lang/Object;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(J",
|
|
"Landroid/net/Uri;",
|
|
"Ljava/lang/String;",
|
|
"TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "uri"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "displayName"
|
|
|
|
invoke-static {p4, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-wide p1, p0, Lcom/lytefast/flexinput/model/Attachment;->id:J
|
|
|
|
iput-object p3, p0, Lcom/lytefast/flexinput/model/Attachment;->uri:Landroid/net/Uri;
|
|
|
|
iput-object p4, p0, Lcom/lytefast/flexinput/model/Attachment;->displayName:Ljava/lang/String;
|
|
|
|
iput-object p5, p0, Lcom/lytefast/flexinput/model/Attachment;->data:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(JLandroid/net/Uri;Ljava/lang/String;Ljava/lang/Object;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 6
|
|
|
|
and-int/lit8 p6, p6, 0x8
|
|
|
|
if-eqz p6, :cond_0
|
|
|
|
const/4 p5, 0x0
|
|
|
|
:cond_0
|
|
move-object v5, p5
|
|
|
|
move-object v0, p0
|
|
|
|
move-wide v1, p1
|
|
|
|
move-object v3, p3
|
|
|
|
move-object v4, p4
|
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/lytefast/flexinput/model/Attachment;-><init>(JLandroid/net/Uri;Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/os/Parcel;)V
|
|
.locals 7
|
|
|
|
const-string v0, "parcelIn"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readLong()J
|
|
|
|
move-result-wide v2
|
|
|
|
const-class v0, Landroid/net/Uri;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/os/Parcel;->readParcelable(Ljava/lang/ClassLoader;)Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/net/Uri;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
sget-object v0, Landroid/net/Uri;->EMPTY:Landroid/net/Uri;
|
|
|
|
const-string v1, "Uri.EMPTY"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
move-object v4, v0
|
|
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
const-string p1, ""
|
|
|
|
:cond_1
|
|
move-object v5, p1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object v1, p0
|
|
|
|
invoke-direct/range {v1 .. v6}, Lcom/lytefast/flexinput/model/Attachment;-><init>(JLandroid/net/Uri;Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final toAttachment(Landroid/net/Uri;Landroid/content/ContentResolver;)Lcom/lytefast/flexinput/model/Attachment;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/net/Uri;",
|
|
"Landroid/content/ContentResolver;",
|
|
")",
|
|
"Lcom/lytefast/flexinput/model/Attachment<",
|
|
"Landroid/net/Uri;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-static {p0, p1}, Lcom/lytefast/flexinput/model/Attachment$Companion;->toAttachment(Landroid/net/Uri;Landroid/content/ContentResolver;)Lcom/lytefast/flexinput/model/Attachment;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toAttachment(Landroidx/core/view/inputmethod/InputContentInfoCompat;Landroid/content/ContentResolver;ZLjava/lang/String;)Lcom/lytefast/flexinput/model/Attachment;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/core/view/inputmethod/InputContentInfoCompat;",
|
|
"Landroid/content/ContentResolver;",
|
|
"Z",
|
|
"Ljava/lang/String;",
|
|
")",
|
|
"Lcom/lytefast/flexinput/model/Attachment<",
|
|
"Landroidx/core/view/inputmethod/InputContentInfoCompat;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-static {p0, p1, p2, p3}, Lcom/lytefast/flexinput/model/Attachment$Companion;->toAttachment(Landroidx/core/view/inputmethod/InputContentInfoCompat;Landroid/content/ContentResolver;ZLjava/lang/String;)Lcom/lytefast/flexinput/model/Attachment;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public describeContents()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 6
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
instance-of v1, p1, Lcom/lytefast/flexinput/model/Attachment;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-wide v1, p0, Lcom/lytefast/flexinput/model/Attachment;->id:J
|
|
|
|
check-cast p1, Lcom/lytefast/flexinput/model/Attachment;
|
|
|
|
iget-wide v3, p1, Lcom/lytefast/flexinput/model/Attachment;->id:J
|
|
|
|
cmp-long v5, v1, v3
|
|
|
|
if-nez v5, :cond_0
|
|
|
|
iget-object v1, p0, Lcom/lytefast/flexinput/model/Attachment;->uri:Landroid/net/Uri;
|
|
|
|
iget-object p1, p1, Lcom/lytefast/flexinput/model/Attachment;->uri:Landroid/net/Uri;
|
|
|
|
invoke-static {v1, p1}, Lkotlin/jvm/internal/k;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getData()Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TT;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/lytefast/flexinput/model/Attachment;->data:Ljava/lang/Object;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getDisplayName()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/lytefast/flexinput/model/Attachment;->displayName:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getId()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/lytefast/flexinput/model/Attachment;->id:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final getUri()Landroid/net/Uri;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/lytefast/flexinput/model/Attachment;->uri:Landroid/net/Uri;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/lytefast/flexinput/model/Attachment;->id:J
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/lytefast/flexinput/model/Attachment;->uri:Landroid/net/Uri;
|
|
|
|
invoke-static {v0, v1}, Lcom/facebook/common/j/b;->d(Ljava/lang/Object;Ljava/lang/Object;)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public writeToParcel(Landroid/os/Parcel;I)V
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/CallSuper;
|
|
.end annotation
|
|
|
|
const-string v0, "dest"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-wide v0, p0, Lcom/lytefast/flexinput/model/Attachment;->id:J
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/os/Parcel;->writeLong(J)V
|
|
|
|
iget-object v0, p0, Lcom/lytefast/flexinput/model/Attachment;->uri:Landroid/net/Uri;
|
|
|
|
check-cast v0, Landroid/os/Parcelable;
|
|
|
|
invoke-virtual {p1, v0, p2}, Landroid/os/Parcel;->writeParcelable(Landroid/os/Parcelable;I)V
|
|
|
|
iget-object p2, p0, Lcom/lytefast/flexinput/model/Attachment;->displayName:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|