Changes of com.discord v1249

This commit is contained in:
root 2020-08-26 17:47:03 +00:00
parent 65ed21516b
commit cef9fa9a2e
1263 changed files with 39712 additions and 39456 deletions

View file

@ -63,7 +63,7 @@
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->o(Lcom/lytefast/flexinput/fragment/FlexInputFragment;Z)V
invoke-static {v0, v1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->m(Lcom/lytefast/flexinput/fragment/FlexInputFragment;Z)V
iget-object v0, p0, Lf/b/a/a/m;->this$0:Lcom/lytefast/flexinput/fragment/FlexInputFragment;

View file

@ -55,7 +55,7 @@
iget-object p1, p1, Lf/b/a/a/n;->this$0:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
invoke-static {p1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->n(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Z
invoke-static {p1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->l(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Z
move-result p1
@ -79,7 +79,7 @@
const/4 v0, 0x1
invoke-static {p1, v0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->o(Lcom/lytefast/flexinput/fragment/FlexInputFragment;Z)V
invoke-static {p1, v0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->m(Lcom/lytefast/flexinput/fragment/FlexInputFragment;Z)V
iget-object p1, p0, Lf/b/a/a/n$a;->d:Lf/b/a/a/n;

View file

@ -3,23 +3,29 @@
.source "FlexInputFragment.kt"
# interfaces
.implements Ljava/lang/Runnable;
.implements Landroidx/core/view/OnApplyWindowInsetsListener;
# instance fields
.field public final synthetic d:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
.field public final synthetic e:Landroidx/appcompat/widget/AppCompatEditText;
# static fields
.field public static final a:Lf/b/a/a/q;
# direct methods
.method public constructor <init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;Landroidx/appcompat/widget/AppCompatEditText;)V
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lf/b/a/a/q;
invoke-direct {v0}, Lf/b/a/a/q;-><init>()V
sput-object v0, Lf/b/a/a/q;->a:Lf/b/a/a/q;
return-void
.end method
.method public constructor <init>()V
.locals 0
iput-object p1, p0, Lf/b/a/a/q;->d:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
iput-object p2, p0, Lf/b/a/a/q;->e:Landroidx/appcompat/widget/AppCompatEditText;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
@ -27,200 +33,50 @@
# virtual methods
.method public final run()V
.method public final onApplyWindowInsets(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
.locals 4
iget-object v0, p0, Lf/b/a/a/q;->d:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
invoke-static {v0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->n(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Z
move-result v0
if-nez v0, :cond_0
return-void
:cond_0
sget-object v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->D:Ljava/lang/String;
const-string v1, "Replacing EditText component"
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
iget-object v0, p0, Lf/b/a/a/q;->e:Landroidx/appcompat/widget/AppCompatEditText;
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatEditText;->getText()Landroid/text/Editable;
move-result-object v0
if-eqz v0, :cond_2
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
move-result v0
const/4 v1, 0x1
if-nez v0, :cond_1
const/4 v0, 0x1
goto :goto_0
:cond_1
const/4 v0, 0x0
:goto_0
if-ne v0, v1, :cond_2
if-eqz p1, :cond_1
iget-object v0, p0, Lf/b/a/a/q;->d:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
if-eqz p2, :cond_0
invoke-static {v0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->l(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Landroidx/appcompat/widget/AppCompatEditText;
move-result-object v0
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatEditText;->getText()Landroid/text/Editable;
move-result-object v0
iget-object v1, p0, Lf/b/a/a/q;->e:Landroidx/appcompat/widget/AppCompatEditText;
invoke-virtual {v1, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V
sget-object v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->D:Ljava/lang/String;
const-string v1, "Replacing EditText component: text copied"
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:cond_2
iget-object v0, p0, Lf/b/a/a/q;->d:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
invoke-static {v0}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->k(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Landroid/view/ViewGroup;
move-result-object v0
iget-object v1, p0, Lf/b/a/a/q;->d:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
invoke-static {v1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->l(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Landroidx/appcompat/widget/AppCompatEditText;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->indexOfChild(Landroid/view/View;)I
invoke-virtual {p1}, Landroid/view/View;->getPaddingLeft()I
move-result v0
iget-object v1, p0, Lf/b/a/a/q;->d:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
invoke-virtual {p1}, Landroid/view/View;->getPaddingTop()I
invoke-static {v1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->k(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Landroid/view/ViewGroup;
move-result v1
move-result-object v1
iget-object v2, p0, Lf/b/a/a/q;->d:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
invoke-static {v2}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->l(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Landroidx/appcompat/widget/AppCompatEditText;
move-result-object v2
invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
iget-object v1, p0, Lf/b/a/a/q;->d:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
invoke-static {v1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->k(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Landroid/view/ViewGroup;
move-result-object v1
iget-object v2, p0, Lf/b/a/a/q;->e:Landroidx/appcompat/widget/AppCompatEditText;
invoke-virtual {v1, v2, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;I)V
iget-object v0, p0, Lf/b/a/a/q;->d:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
iget-object v1, p0, Lf/b/a/a/q;->e:Landroidx/appcompat/widget/AppCompatEditText;
iput-object v1, v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->p:Landroidx/appcompat/widget/AppCompatEditText;
invoke-virtual {v1}, Landroid/widget/EditText;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
instance-of v1, v0, Landroid/widget/LinearLayout$LayoutParams;
if-nez v1, :cond_3
const/4 v0, 0x0
:cond_3
check-cast v0, Landroid/widget/LinearLayout$LayoutParams;
if-eqz v0, :cond_4
goto :goto_1
:cond_4
new-instance v0, Landroid/widget/LinearLayout$LayoutParams;
const/4 v1, -0x1
const/4 v2, -0x2
const/high16 v3, 0x3f800000 # 1.0f
invoke-direct {v0, v1, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V
:goto_1
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x15
if-gt v1, v2, :cond_5
iget-object v1, p0, Lf/b/a/a/q;->d:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
invoke-static {v1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->k(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Landroid/view/ViewGroup;
move-result-object v1
invoke-virtual {v1}, Landroid/view/ViewGroup;->getBackground()Landroid/graphics/drawable/Drawable;
move-result-object v1
iget-object v2, p0, Lf/b/a/a/q;->d:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
invoke-virtual {v2}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
move-result-object v2
sget v3, Lcom/lytefast/flexinput/R$b;->colorBackgroundSecondaryAlt:I
invoke-static {v2, v3}, Lcom/discord/utilities/color/ColorCompat;->getThemedColor(Landroid/content/Context;I)I
invoke-virtual {p1}, Landroid/view/View;->getPaddingRight()I
move-result v2
sget-object v3, Landroid/graphics/PorterDuff$Mode;->SRC_ATOP:Landroid/graphics/PorterDuff$Mode;
invoke-virtual {p2}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetBottom()I
invoke-virtual {v1, v2, v3}, Landroid/graphics/drawable/Drawable;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V
move-result v3
:cond_5
iget-object v1, p0, Lf/b/a/a/q;->e:Landroidx/appcompat/widget/AppCompatEditText;
invoke-virtual {p1, v0, v1, v2, v3}, Landroid/view/View;->setPadding(IIII)V
invoke-virtual {v1, v0}, Landroid/widget/EditText;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
invoke-virtual {p2}, Landroidx/core/view/WindowInsetsCompat;->consumeSystemWindowInsets()Landroidx/core/view/WindowInsetsCompat;
iget-object v0, p0, Lf/b/a/a/q;->e:Landroidx/appcompat/widget/AppCompatEditText;
move-result-object p1
invoke-virtual {v0}, Landroid/widget/EditText;->requestLayout()V
return-object p1
sget-object v0, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->D:Ljava/lang/String;
:cond_0
const-string p1, "insets"
const-string v1, "Binding EditText hooks"
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
throw v0
iget-object v0, p0, Lf/b/a/a/q;->d:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
:cond_1
const-string p1, "view"
iget-object v1, p0, Lf/b/a/a/q;->e:Landroidx/appcompat/widget/AppCompatEditText;
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
invoke-virtual {v0, v1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->q(Landroidx/appcompat/widget/AppCompatEditText;)V
return-void
throw v0
.end method

View file

@ -6,26 +6,16 @@
.implements Landroidx/core/view/OnApplyWindowInsetsListener;
# static fields
.field public static final a:Lf/b/a/a/r;
# instance fields
.field public final synthetic a:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lf/b/a/a/r;
invoke-direct {v0}, Lf/b/a/a/r;-><init>()V
sput-object v0, Lf/b/a/a/r;->a:Lf/b/a/a/r;
return-void
.end method
.method public constructor <init>()V
.method public constructor <init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
.locals 0
iput-object p1, p0, Lf/b/a/a/r;->a:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
@ -34,7 +24,7 @@
# virtual methods
.method public final onApplyWindowInsets(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
.locals 4
.locals 1
const/4 v0, 0x0
@ -42,23 +32,21 @@
if-eqz p2, :cond_0
invoke-virtual {p1}, Landroid/view/View;->getPaddingLeft()I
iget-object p1, p0, Lf/b/a/a/r;->a:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
move-result v0
invoke-static {p1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->h(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Landroid/view/View;
invoke-virtual {p1}, Landroid/view/View;->getPaddingTop()I
move-result-object p1
move-result v1
invoke-static {p1, p2}, Landroidx/core/view/ViewCompat;->dispatchApplyWindowInsets(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
invoke-virtual {p1}, Landroid/view/View;->getPaddingRight()I
iget-object p1, p0, Lf/b/a/a/r;->a:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
move-result v2
invoke-static {p1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->j(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Landroid/view/ViewGroup;
invoke-virtual {p2}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetBottom()I
move-result-object p1
move-result v3
invoke-virtual {p1, v0, v1, v2, v3}, Landroid/view/View;->setPadding(IIII)V
invoke-static {p1, p2}, Landroidx/core/view/ViewCompat;->dispatchApplyWindowInsets(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
invoke-virtual {p2}, Landroidx/core/view/WindowInsetsCompat;->consumeSystemWindowInsets()Landroidx/core/view/WindowInsetsCompat;
@ -74,7 +62,7 @@
throw v0
:cond_1
const-string p1, "view"
const-string p1, "<anonymous parameter 0>"
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V

View file

@ -1,70 +0,0 @@
.class public final Lf/b/a/a/s;
.super Ljava/lang/Object;
.source "FlexInputFragment.kt"
# interfaces
.implements Landroidx/core/view/OnApplyWindowInsetsListener;
# instance fields
.field public final synthetic a:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
# direct methods
.method public constructor <init>(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)V
.locals 0
iput-object p1, p0, Lf/b/a/a/s;->a:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onApplyWindowInsets(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
.locals 1
const/4 v0, 0x0
if-eqz p1, :cond_1
if-eqz p2, :cond_0
iget-object p1, p0, Lf/b/a/a/s;->a:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
invoke-static {p1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->h(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Landroid/view/View;
move-result-object p1
invoke-static {p1, p2}, Landroidx/core/view/ViewCompat;->dispatchApplyWindowInsets(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
iget-object p1, p0, Lf/b/a/a/s;->a:Lcom/lytefast/flexinput/fragment/FlexInputFragment;
invoke-static {p1}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->j(Lcom/lytefast/flexinput/fragment/FlexInputFragment;)Landroid/view/ViewGroup;
move-result-object p1
invoke-static {p1, p2}, Landroidx/core/view/ViewCompat;->dispatchApplyWindowInsets(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
invoke-virtual {p2}, Landroidx/core/view/WindowInsetsCompat;->consumeSystemWindowInsets()Landroidx/core/view/WindowInsetsCompat;
move-result-object p1
return-object p1
:cond_0
const-string p1, "insets"
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
throw v0
:cond_1
const-string p1, "<anonymous parameter 0>"
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
throw v0
.end method

View file

@ -0,0 +1,77 @@
.class public final Lf/b/a/g/a;
.super Lj0/n/c/i;
.source "FlexEditText.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lj0/n/c/i;",
"Lkotlin/jvm/functions/Function1<",
"Landroidx/core/view/inputmethod/InputContentInfoCompat;",
"Lkotlin/Unit;",
">;"
}
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/lytefast/flexinput/widget/FlexEditText;
# direct methods
.method public constructor <init>(Lcom/lytefast/flexinput/widget/FlexEditText;)V
.locals 0
iput-object p1, p0, Lf/b/a/g/a;->this$0:Lcom/lytefast/flexinput/widget/FlexEditText;
const/4 p1, 0x1
invoke-direct {p0, p1}, Lj0/n/c/i;-><init>(I)V
return-void
.end method
# virtual methods
.method public invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 4
check-cast p1, Landroidx/core/view/inputmethod/InputContentInfoCompat;
if-eqz p1, :cond_0
sget-object v0, Lcom/lytefast/flexinput/model/Attachment;->Companion:Lcom/lytefast/flexinput/model/Attachment$Companion;
iget-object v1, p0, Lf/b/a/g/a;->this$0:Lcom/lytefast/flexinput/widget/FlexEditText;
invoke-virtual {v1}, Landroid/widget/EditText;->getContext()Landroid/content/Context;
move-result-object v1
const-string v2, "context"
invoke-static {v1, v2}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v1
const-string v2, "context.contentResolver"
invoke-static {v1, v2}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v2, 0x1
const-string v3, "unknown"
invoke-virtual {v0, p1, v1, v2, v3}, Lcom/lytefast/flexinput/model/Attachment$Companion;->b(Landroidx/core/view/inputmethod/InputContentInfoCompat;Landroid/content/ContentResolver;ZLjava/lang/String;)Lcom/lytefast/flexinput/model/Attachment;
:cond_0
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object p1
.end method

View file

@ -100,57 +100,3 @@
return-object p0
.end method
.method public f(Ljava/lang/String;)Lf/g/g/a/a/d;
.locals 2
invoke-virtual {p1}, Ljava/lang/String;->isEmpty()Z
move-result v0
if-eqz v0, :cond_2
const/4 v0, 0x0
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v1
if-nez v1, :cond_0
goto :goto_0
:cond_0
invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object p1
if-nez p1, :cond_1
goto :goto_0
:cond_1
invoke-static {p1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->b(Landroid/net/Uri;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
move-result-object p1
invoke-virtual {p1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a()Lcom/facebook/imagepipeline/request/ImageRequest;
move-result-object v0
:goto_0
iput-object v0, p0, Lcom/facebook/drawee/controller/AbstractDraweeControllerBuilder;->d:Ljava/lang/Object;
return-object p0
:cond_2
invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object p1
invoke-virtual {p0, p1}, Lf/g/g/a/a/d;->e(Landroid/net/Uri;)Lf/g/g/a/a/d;
move-result-object p1
return-object p1
.end method